Ticket #51674: patch-fcweight-2.12.diff

File patch-fcweight-2.12.diff, 382 bytes (added by tc01@…, 8 years ago)
  • src/fcweight.c

    Revert a 2.12 change in fcweight.c that introduced a bug
    old new  
    5656
    5757        /* Loosely based on WPF Font Selection Model's advice. */
    5858
    59         if (ot_weight < 0)
     59        if (ot_weight < 0 || ot_weight >1000)
    6060            return -1;
    6161        else if (1 <= ot_weight && ot_weight <= 9)
    6262        {