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 56 56 57 57 /* Loosely based on WPF Font Selection Model's advice. */ 58 58 59 if (ot_weight < 0 )59 if (ot_weight < 0 || ot_weight >1000) 60 60 return -1; 61 61 else if (1 <= ot_weight && ot_weight <= 9) 62 62 {