The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix line gap

These changes was commited to the Birdfont repository Sun, 06 Dec 2015 14:16:12 +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, 06 Dec 2015 14:16:12 +0000]

Updated Files

libbirdfont/OpenFontFormat/HheaTable.vala
--- a/libbirdfont/OpenFontFormat/HheaTable.vala +++ b/libbirdfont/OpenFontFormat/HheaTable.vala @@ -125,7 +125,7 @@ total_height = get_winascent () - get_windescent (); ascender = (int16) rint (upm * get_winascent () / (double) total_height); descender = (int16) (ascender - upm); - line_gap = (int16) rint (total_height - upm); + line_gap = (int16) rint (ascender + descender - upm); fd.add_16 (ascender); // Ascender fd.add_16 (descender); // Descender