freetype
[Top][All Lists]
Advanced

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

Re: [ft] Problem of oblique using FT_Outline_Transform


From: Wang Wei
Subject: Re: [ft] Problem of oblique using FT_Outline_Transform
Date: Thu, 21 Jun 2012 15:59:55 +0800

Thanks so much! I read your code and I got it working.

The root problem is my horizontal bearing before "v" is from metrics->horiBearingX, and in your codes it's glyph->bitmap_left .

As I read again from the documentation of FT_Set_Transform: 
Note that this also transforms the ‘face.glyph.advance’ field, but not the values in ‘face.glyph.metrics’.


Wang Wei

I guess I missed that since I was using FT_Outline_Transform.

On Wed, Jun 20, 2012 at 8:16 PM, Werner LEMBERG <address@hidden> wrote:

> I wanted to advance my pen as usual, then "step back" some offset
> then start blitting the transformed glyph image.

Why do you want to step back?  This is completely unnecessary IMHO.

> As shown, the distance between point A and point B is the question.

This is *far* too complicated.  Why don't you do the `normal' thing?
Just compile the attached example (directly derived from the
turorial's `example1.c'), and a call with

 ./example-slanting arial.ttf above

gives the attached text file which is just right.  It's almost
trivial!


   Werner



--

Best regards,
Wang Wei

reply via email to

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