freetype
[Top][All Lists]
Advanced

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

Re: [ft] wrong bbox values..


From: Werner LEMBERG
Subject: Re: [ft] wrong bbox values..
Date: Thu, 04 Feb 2010 16:36:56 +0100 (CET)

> Can anybody please explain me why is it so?
>
> Pen.x = 1*64;
> Pen.y= 1*64;
> bbox = [0 1 5 9]      Unicode Val = 66(character f)
> bbox = [1 -1 7 7]      Unicode Val = 67(character g)
> bbox = [1 1 7 9]      Unicode Val = 68(character h)
>
> Pen.x=0;
> Pen.y=0;
> bbox = [-1 0 4 8]      Unicode Val = 66
> bbox = [0 -2 6 6]      Unicode Val = 67
> bbox = [0 0 6 8]      Unicode Val = 68
>
> When i changed my pen position to start from 0 index,Why my xmin
> value is negative?

It seems that in your font the `f' glyph slightly extends to the left
of the origin.

> If i would like to know the distance ( i mean offset) between two
> glyphs,how can i find out?

The distance between two glyphs is basically a meaningless value.  You
draw a glyph at a given position, then you increase the position by
the advance width, then you draw the next glyph.


    Werner




reply via email to

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