|
From: | Han-Wen Nienhuys |
Subject: | Re: abort in framework-ps.scm |
Date: | Tue, 28 Mar 2006 16:59:37 +0200 |
User-agent: | Thunderbird 1.5 (X11/20060313) |
Werner LEMBERG wrote:
. If we include a TrueType font as Type 42, it must contain a /CharStrings dictionary which assigns glyph names to all glyphs. With other words, there are always glyph names. Since lilypond builds the Type 42 by itself, it should automatically have access to this data.How do I get the Unicode codepoints for a TT glyph from freetype?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.
I did this in CVS. Note that the table stops at FFE5; should I also print uni1XXXX glyphs, or is something else amiss?
uniFF9E 13122 def /uniFF9F 13123 def /uniFFE0 13124 def /uniFFE1 13125 def/uniFFE2 13126 def /uniFFE3 13127 def /uniFFE5 13128 def /uni0000 13129 def /uni0000 13130 def /uni0000 13131 def /uni0000 13132 def /uni0000 13133 def /uni0000 13134 def /uni0000 13135 def /uni0000 13136 def /uni0000 13137 def /uni0000 13138 def /uni0000 13139 def /uni0000 13140 def /uni0000 13141 def /uni0000 13142 def /uni0000 13143 def /uni0000 13144 def /uni0000 13145 def /uni0000 13146 def /uni0000 13147 def /uni0000 13148 def /uni0000 13149 def /uni0000 13150 def /uni0000 13151 def /uni0000 13152 def /uni0000 13153 def /uni0000 13154 def /uni0000 13155 def
/uni0000 13156 def /uni0000 13157 def /uni0000 13158 def /uni0000 -- Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen LilyPond Software Design -- Code for Music Notation http://www.lilypond-design.com
[Prev in Thread] | Current Thread | [Next in Thread] |