The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Merge branch 'master' of github.com:johanmattssonm/birdfont

These changes was commited to the Birdfont repository Tue, 31 Oct 2017 17:11:56 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 31 Oct 2017 17:11:56 +0000]

Updated Files

libbirdfont/OpenFontFormat/Os2Table.vala
--- a/libbirdfont/OpenFontFormat/Os2Table.vala +++ b/libbirdfont/OpenFontFormat/Os2Table.vala @@ -131,8 +131,8 @@ fd.add_u16 (glyf_table.get_first_char ()); // usFirstCharIndex fd.add_u16 (glyf_table.get_last_char ()); // usLastCharIndex - int16 ascender = (int16) rint (font.top_limit * HeadTable.UNITS); - int16 descender = (int16) rint (font.bottom_limit * HeadTable.UNITS); + int16 ascender = (int16) rint ((font.top_limit - font.base_line) * HeadTable.UNITS); + int16 descender = (int16) rint ((font.bottom_limit - font.base_line) * HeadTable.UNITS); fd.add_16 (ascender); // sTypoAscender fd.add_16 (descender); // sTypoDescender