The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Set decender value to bottom margin for the font

These changes was commited to the Birdfont repository Sun, 13 Dec 2015 23:02:21 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sun, 13 Dec 2015 23:02:21 +0000]

Updated Files

libbirdfont/OpenFontFormat/Os2Table.vala
--- a/libbirdfont/OpenFontFormat/Os2Table.vala +++ b/libbirdfont/OpenFontFormat/Os2Table.vala @@ -139,11 +139,11 @@ fd.add_16 (100); // sTypoLineGap // usWinAscent - fd.add_u16 (hhea_table.get_winascent ()); + fd.add_u16 (ascender); // usWinDescent (not like sTypoDescender) - win_descent = hhea_table.get_windescent (); - if (win_descent < 0) { + win_descent = descender; + if (win_descent > 0) { warning (@"usWinDescent is unsigned, can not write $(win_descent) to the field."); fd.add_u16 (0); } else {