freetype
[Top][All Lists]
Advanced

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

Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed


From: Wojciech Mamrak
Subject: Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed
Date: Thu, 24 Jan 2013 12:07:44 +0100

Ohh, right.

This only proves how the name of this property is misleading.

2013/1/24 Werner LEMBERG <address@hidden>:
>>> This has been replaced with
>>>
>>>   ascender_int = round(ascender_26.6);
>>>   descender_int = round(descender_26.6);
>>>   height_int = ascender_int - descender_int;
>>>
>>
>> This seems to assume that height_26.6 was always ascender_26.6 + -
>> descender_26.6.  I'm not sure this is always true.  IIRC, there are
>> fonts where the line height is actually different from ascender -
>> descender, they would be affected by this patch in surprising ways.
>
> *blush* Uh, oh, I misunderstood what FreeType's `height' value is.
> How embarassing.  As you correctly state it's *not* `ascender -
> descender' but the baseline-to-baseline distance.
>
> I'll undo the change (and add a comment).  Sorry for the noise.
>
>
>     Werner
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype



reply via email to

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