[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: |
Werner LEMBERG |
Subject: |
Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed |
Date: |
Thu, 24 Jan 2013 08:35:11 +0100 (CET) |
>> 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
- Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, (continued)
- Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, Alexei Podtelezhnikov, 2013/01/23
- Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, Wojciech Mamrak, 2013/01/24
- Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, Alexei Podtelezhnikov, 2013/01/24
- Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, Werner LEMBERG, 2013/01/24
- Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, Alexei Podtelezhnikov, 2013/01/24
- Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, Werner LEMBERG, 2013/01/24
Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, Alexei Podtelezhnikov, 2013/01/23
Re: [ft] [ft-devel] heads-up: TrueType height computation has been fixed, David Turner, 2013/01/23