The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Load glyph outlines for space character in TTF fonts

These changes was commited to the Birdfont repository Thu, 16 Oct 2014 18:56:48 +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, 16 Oct 2014 18:56:48 +0000]

Updated Files

libbirdfont/OpenFontFormat/load_font.c
--- a/libbirdfont/OpenFontFormat/load_font.c +++ b/libbirdfont/OpenFontFormat/load_font.c @@ -753,6 +753,10 @@ FT_Load_Glyph(face, gid, FT_LOAD_DEFAULT | FT_LOAD_NO_SCALE); g_string_append_printf (bf, "<collection unicode=\"U+20\">\n"); g_string_append_printf (bf, "\t<glyph left=\"%f\" right=\"%f\" selected=\"true\">\n", 0.0, face->glyph->metrics.horiAdvance * units); + + bf_data = get_bf_path (charcode, face, units_per_em, err); + g_string_append (bf, bf_data->str); + g_string_append (bf, "\t</glyph>\n"); g_string_append_printf (bf, "</collection>\n"); }