The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Thu, 28 May 2015 22:09:23 +0000]

Updated Files

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);