[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] FT_Set_Charmap and unicode charmap
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] FT_Set_Charmap and unicode charmap |
Date: |
Sun, 11 Feb 2007 14:02:27 +0100 (CET) |
> Trying to debug a bug in libgd, I found something that sounds like a
> bug.
It's not a bug.
> When I set the charmap using FT_Set_Charmap with the unicode
> charmap, FT_Get_Char_Index fails to find the correct glyph (returns
> 0).
Yep. You are selecting the wrong Unicode charmap. Your loop
construction around line 90 selects the first one (which is for
Apple's 0,0 platform/encoding ID) instead the `extended' one
(Microsoft's 3/10).
You should use FT_Select_Charmap() instead.
I'll add a note to the documentation.
Werner