The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 13 Dec 2015 23:02:21 +0000 (00:02 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 13 Dec 2015 23:02:21 +0000 (00:02 +0100)
commit 053b175e47b79062fd24ee612465226e6e01e0f6
tree 6eb7be126f823342baa3c340fd6afd67925a6a14
parent b5da79752218c144bea0b85a51107325e367e5ce
Set decender value to bottom margin for the font

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 {