freetype
[Top][All Lists]
Advanced

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

Re: [ft] advance X value is less than width


From: Werner LEMBERG
Subject: Re: [ft] advance X value is less than width
Date: Mon, 25 Oct 2010 17:51:35 +0200 (CEST)

> > It's hard to tell without more information.  What font, at which
> > ppem size?  How does your font look like with, say, ftdiff or
> > ftview?
>
> Here are the Details:
> FONT_NAME     =    Arial
> FONT_STYLE     =    Regular
> FONT_HEIGHT     =    12

Umm, I've asked for the ppem value, and you told me the point size
which is useless if you don't tell me the dpi value at the same time.
Guessing shows that you are using 96dpi.

> For 0x76: i get bitmap data as,
> 
> BitmapData: 41,00,41,00,22,00,22,00,14,00,14,00,14,00,08,00,08,00

This is correct.

> 09- Width, [ bbox.xMax - bbox.xMin ]
> 09-height, [ bbox.yMax - bbox.yMin ]

This is correct too.

> 07-AdvanceX [slot->advance.x>>6]

And finally, this is correct too.

Have a look at the attached image which shows the outline after the
hinting has been applied.  You can see that the bytecode instructions
have moved points 1 and 9 horizontally to the left and right of points
11 and 12, respectively.  FreeType uses point coordinates to compute
the bbox, not the pixels which are black, thus you get a value of 9
for the width.


    Werner

PNG image


reply via email to

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