The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Oct 2017 17:11:56 +0000 (18:11 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Oct 2017 17:11:56 +0000 (18:11 +0100)
commit bb8e914e3ff91775df019f6ee4977f1c056e5c60
tree bc1f7597aa25b7d119476a14b850b21797c09035
parent eab197b30087adf260e43a55e1387e108fbc59a1
parent 307820595c13e79a29b61339f479f9e73999c46f
Merge branch 'master' of github.com:johanmattssonm/birdfont

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