freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] FT_Select_Charmap problem


From: Nikolay Sivov
Subject: Re: [ft] FT_Select_Charmap problem
Date: Fri, 18 Dec 2015 01:01:14 +0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 17.12.2015 19:32, Michael IV wrote:
> I am trying to understand exactly how to work with different charmaps.
> 
> For example,I got a font with platform id TT_PLATFORM_MICROSOFT
> 
> and encoding - FT_ENCODING_MS_SYMBOL.
> 
> Now inspecting the font I see that the chars (from space and onwards begin
> from 0xF020 and the SYMBOL AREA starts at 0xF000
> 
> Now,I read about FT_Select_Charmap and FT_Set_Charmap and I thought if I
> select the specific charmap,then FT_Get_Char_Index returns me the correct
> index .So if for example
> I pass a char 'F' it will return me appropriate index from the selected
> charmap.But it doesn't happen.it returns zero.Only if I do smth like :
> charIndex + 0xF000 ,it works.Does it mean I need to offset into selected
> charmap manually?

Yes, you should do +0xf000 manually for FT_ENCODING_MS_SYMBOL case only.
Freetype doesn't treat it any differently.

> 
> Thanks
> 
> 
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]