Werner LEMBERG wrote:
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 re
set the encoding after I'm done?
Why? FT_Done_Face takes care of charmap objects also, IIRC.
Because the FT_Face comes out of Pango. I don't know if Pango enjoys its
fonts being changed.
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?
trouble is , I don't know what report to send to whom. It happens only
on some windows machines.
--
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
LilyPond Software Design
-- Code for Music Notation
http://www.lilypond-design.com
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond