The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix acender and decender in hhea table

These changes was commited to the Birdfont repository Sat, 08 Aug 2015 06:46:19 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sat, 08 Aug 2015 06:46:19 +0000]

Updated Files

libbirdfont/OpenFontFormat/HheaTable.vala
--- a/libbirdfont/OpenFontFormat/HheaTable.vala +++ b/libbirdfont/OpenFontFormat/HheaTable.vala @@ -91,7 +91,10 @@ fd.add_fixed (version); // table version ascender = (int16) rint (font.top_limit * HeadTable.UNITS); + ascender -= (int16) rint (font.base_line * HeadTable.UNITS); + descender = (int16) rint (font.bottom_limit * HeadTable.UNITS); + descender -= (int16) rint (font.base_line * HeadTable.UNITS); fd.add_16 (ascender); // Ascender fd.add_16 (descender); // Descender