Hi,

Excuse me, FreeType2 has no feature to convert character encoding.
If you mean "how to select the charcode-to-glyph mapping table
for Unicode", the solution would be TT_PLATFORM_APPLE_UNICODE.
TT_PLATFORM_MACINTOSH is used for the legacy system before Unicode,
the recent Macintosh uses TT_PLATFORM_APPLE_UNICODE.

Regards,
mpsuzuki


Tom Sanham wrote:
> Hello
> 
>  
> 
> When a FT_CharMapRec has
> 
>   .encoding=FT_ENCODING_NONE
> 
>   .platform_id=TT_PLATFORM_MACINTOSH
> 
>   .encoding_id=<whatever>
> 
>  
> 
> My question is: for the possible values of .encoding_id, how does one
> figure out which mapping to use to convert from a Unicode value to the
> value expected by FT_Get_Char_Index?
> 
>  
> 
> (In experiment, I have found that when .encoding_id=TT_MAC_ID_JAPANESE,
> I can convert Unicode values through the mapping specified at the
> following URL. What about the other values of .encoding_id?)
> 
> ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/APPLE/JAPANESE.TXT
> 
>  
> 
> Thank you
> 
>  
> 
> Tom
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Freetype mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/freetype


_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to