The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix line gap

Changes made to libbirdfont/OpenFontFormat/HheaTable.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OpenFontFormat/HheaTable.vala +++ 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