freetype
[Top][All Lists]
Advanced

[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: Tue, 30 May 2006 15:14:36 UT

Hi,

I tried the work around and it look like working with zro degree orientaion. One
thing I undestood is FT_Set_Transform() won't transform the metrics. But using
this how you get this formula is not clear. Please explain. Also please tell me,
is this work around will work for all orientation.

One more query is there please bear with me. When we transform the font image,
we transorm the bimap(buffer only) or we transform the base line also.

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







reply via email to

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