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 <[email protected]> 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
_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to