[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Re: Re: [ft] Vertical Font, X Bearing
From: |
Paresh Deshmukh |
Subject: |
RE: Re: Re: [ft] Vertical Font, X Bearing |
Date: |
Mon, 29 May 2006 14:44:54 UT |
Hi,
Do you have such sample code which I can use for vertical layout without
FT_LOAD_VERTICAL_LAYOUT? For few Japanese and Chinese characters vertical and
horizontal layout differs how to handle that.
Thanks & Regards
Paresh
>
> Hi,
>
> On Sat, May 27, 2006 at 06:31:57AM +0000, Paresh Deshmukh wrote:
> > Yes +ve mean positive. Problem is I am expecting "bitmap_left " negative but
> > getting all positive.
> Please don't use FT_LOAD_VERTICAL_LAYOUT. It is not well-defined
> (currently).
>
> For vertical layout, you instead have to translate the rendered bitmaps
> manually:
>
> slot->bitmap_left += (metrics->vertBearingX - metrics->horiBearingX) / 64;
> slot->bitmap_top += (-metrics->vertBearingY - metrics->horiBearingY) / 64;
>
> --
> Regards,
> olv