Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-26 Thread Werner LEMBERG
I'm getting the following output: Num glyphs: 3 char: 32 (index = 1) char: 160 (index = 1) How do I get the last char ? (or did I do something wrong ?) Without seeing the font this can't be answered. For example, character code 160 might map to the `space' glyph, having glyph index 1

Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-26 Thread Nicolas Rougier
Thanks for the explanation. I've transmitted your answer on the freetype-py issue page. Nicolas On Sep 26, 2011, at 9:29 , Werner LEMBERG wrote: I'm getting the following output: Num glyphs: 3 char: 32 (index = 1) char: 160 (index = 1) How do I get the last char ? (or did I do

Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-26 Thread David Bevan
Nicolas, It looks to me like you terminate the loop too early. gindex == 0 is the last glyph; you could use do {} while (); rather than while () {}. David %^ From: freetype-devel-bounces+david.bevan=pb@nongnu.org

Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-26 Thread David Bevan
In fact, even if/when the synthesizing of the Unicode charmap for ZapfDingbats is corrected, so that FT gives you 0: platform 3, encoding 1, language 0 (active) 0x0020 = 1 0x00a0 = 1 0x25bc = 2 you will only get two glyphs (but three characters) with the loop.