freetype
[Top][All Lists]
Advanced

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

Re: [ft] diff Pixel height


From: samaram s
Subject: Re: [ft] diff Pixel height
Date: Mon, 22 Feb 2010 11:46:52 -0500

Hi Werner,
i tried like below:

error = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_HINTING);

Family name of the font is --- Arial
Style name of the font is --- Regular
bbox = [-1 0 9 9]       

Xmin is still negative.

Can you please provide me syntax if i am doing wrong in setting the flags.How can i do if i want a MONOCHROME,RENDERED and NO_HINTING glyph metrics?

Thanks&regards
Sam



On Thu, Feb 18, 2010 at 5:23 PM, Werner LEMBERG <address@hidden> wrote:

> I mean, If i would like to verify NO_HINTING option and see whether
> i get real Metrics of the Glyph, how can i do?

You can load a glyph with the no-hinting flag set, then doing the same
again without that flag.

Note that there is perhaps a misunderstanding: Hinting instructions
move points to improve the shape for a given pixel size; this often
changes the BBox.  However, even if you use the unhinted outline of a
glyph, you have to rasterize it to get the *exact* dimensions in
pixels.

In other words: Regardless whether hinting is active or not, the real
BBox of a glyph rasterized at a certain pixel size can only be
determined after a glyph has been rendered.

Or to say it again in a different formulation: The BBox and CBox
functions provided by FreeType are by their very nature of limited use
if you need a *smallest* BBox at a given pixel size.


   Werner


reply via email to

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