The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix glyph version in TTF

These changes was commited to the Birdfont repository Thu, 28 May 2015 22:09:23 +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>
Thu, 28 May 2015 22:09:23 +0000 (00:09 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 28 May 2015 22:09:23 +0000 (00:09 +0200)
commit 5f2d2c73fbf079c6665405d4ac93956cefa8f26c
tree afe6ff54e68f26a97b6af05f06335ad7dbc48a8b
parent e3d0bcb62cb41afba779730304f513d57c48067f
Fix glyph version in TTF

libbirdfont/OpenFontFormat/load_font.c
--- a/libbirdfont/OpenFontFormat/load_font.c +++ b/libbirdfont/OpenFontFormat/load_font.c @@ -670,7 +670,8 @@ } g_string_append_printf (glyph, "<collection unicode=\"U+%x\">\n", (guint)charcode); - g_string_append_printf (glyph, "\t<glyph left=\"%f\" right=\"%f\" selected=\"true\">\n", + g_string_append_printf (glyph, "\t<selected id=\"0\" />\n"); + g_string_append_printf (glyph, "\t<glyph id=\"0\" left=\"%f\" right=\"%f\">\n", 0.0, font->face->glyph->metrics.horiAdvance * units); g_string_append_printf (glyph, "%s", paths->str);