The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 06 Dec 2015 14:16:12 +0000 (15:16 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 06 Dec 2015 14:16:12 +0000 (15:16 +0100)
commit 753ce44e4aa6ff951c182632f5a1c47a61c8027f
tree 82936ce52bd76300a49b01b34b0aefae4b59d33f
parent 8cdebc6b123677686fe8f028c385a623dfea6595
Fix line gap

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