> > Use FT_Select_Charmap(face, FT_ENCODING_UNICODE) to select a Unicode > > cmap, then loop over all input character codes with > > FT_Get_First_Char() and FT_Get_Next_Char(). Those two functions > > return the glyph index also. > > Ah, yes, actually, I already had this code. Doesn't freetype select > UNICODE automatically?
If it is available, yes. But we should reject fonts without a Unicode cmap, so it makes sense to select it explicitly. > Also, should I reset the encoding after I'm done? Why? FT_Done_Face takes care of charmap objects also, IIRC. > Me neither, on some machines a copy of the font is embedded for every > century schoolbook glyph on the page Urgh. Have you sent bug reports? Werner _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond