[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] What is the use of the right FT_Property_Set function intended
From: |
Byeongsik Jeon |
Subject: |
Re: [ft] What is the use of the right FT_Property_Set function intended by the Freetype? |
Date: |
Tue, 6 Nov 2018 23:12:20 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
On Tue, 06 Nov 2018 11:53:10 +0100 (CET), Werner Lemberg <address@hidden> wrote:
>
>> In the runtime, what is the appropriate way to render the MS legacy
>> fonts(Tahoma, Arial, ...) as v35 and the MS ClearType
>> fonts(Consolas, ...) as v40? Microsoft Windows GDI displays two
>> types of fonts at the same time.
>>
>> PSEUDO CODE:
>> ----
>> gasp_version = get_gasp_version( font );
>> interpreter_version = gasp_version ? 40 : 35;
>>
>> LOCK();
>> FT_Property_Set( ..., &interpreter_version );
>> FT_Load_Glyph( ..., load_flags );
>> UNLOCK();
>> ----
>>
>> Is there any problem with this method? Or is there another
>> appropriate solution?
>
> This looks OK. However, I would not only check the `gasp' table
> version but also apply the data in it.
>
OK. I agree.
>> I think it would be possible for FT_Load_Glyph to implement this
>> operation on its own without FT_Property_Set. Is there any plan
>> that the Freetype will provide this characteristic?
>
> This is issue https://savannah.nongnu.org/bugs/?43380.
>
I would like to ask you to solve this issue.
Thank you.
Re: [ft] What is the use of the right FT_Property_Set function intended by the Freetype?, Byeongsik Jeon, 2018/11/05