[Top][All Lists]

[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: Sat, 15 Oct 2005 14:53:22 +0800
User-agent: Mutt/1.5.11

On Fri, Oct 14, 2005 at 09:18:08PM -0700, Sergey Tolstov wrote:
> Hello,
> The patch helped to fix the problem with vertical metrics.
> However, now it turns out that SimSun font has vertical advance smaller
> than bbox height for latin characters (check E, for example). As a
> result, upright English text in vertical layout, becomes too condensed.
> Adobe Illustrator displays vertical English text (upright) fine however.
> It should mean they do not take the vadvance into consideration. So
> should the vertical advance be ignored, or is there some tricks to
> detect faulty fonts and ignore it only for them?
If you are willing to use a hacked version of freetype, you can set
face->vertical_info to 0 before "load_truetype_glyph".

Or you can check if glyph->metrics.height is less than
glyph->metrics.vertAdvance in you application.  If not, find some
reasonable value by yourself, like "compute_glyph_metrics" does.
(If you like it to be vertically monotone, then always find the value


reply via email to

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