freetype
[Top][All Lists]
Advanced

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

Re: [ft] Vertical layout


From: Chia I Wu
Subject: Re: [ft] Vertical layout
Date: Thu, 13 Oct 2005 07:39:56 +0800
User-agent: Mutt/1.5.11

On Wed, Oct 12, 2005 at 03:59:18PM -0700, Sergey Tolstov wrote:
Hi,
> Hello,
> 
> In what state is FT support for vertical glyph metrics?
The problem you encountered has been fixed in CVS:
http://savannah.gnu.org/cgi-bin/viewcvs/freetype/freetype2/src/truetype/ttgload.c.diff?r1=1.138&r2=1.139
> 
> I am encountering problem with vertical glyph metrics, when they are
> present in a font file. I get a huge number for the linearVertAdvance,
> other values look fine, because of that, glyphs are not generated. I
> need advance value in design units for WYSIWYG.
> 
> While debugging, I found:
> In the ttgload.c, line 1768, subtraction is incorrect
>       advance_height = (FT_UShort)( loader->pp4.y - loader->pp3.y );
> should be, according to earlier calculations
>       advance_height = (FT_UShort)( loader->pp3.y - loader->pp4.y );
> 
> Even with that fix, linearVertAdvance is calculated incorrectly. (Should
> they use loader->vadvance instead?)
As loader->pp's are in 26.6, advance_height should be divided by y_scale
after the calculation.

-- 
Regards,
olv




reply via email to

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