freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] compute bounding box


From: David Turner
Subject: Re: [Devel] compute bounding box
Date: Mon, 23 Apr 2001 14:10:53 +0200

Bonjour Thierry,

> Tom,
> 
> Is this piece of code correct?
> 
Bascially yes (check that "char" is unsigned though !!)

> 
> What is the unit of glyphMetrics.horiAdvance? Does it depend on the
> flags given to FT_Load_Glyph? I find the documentation not really
> clear on this.
> 

FT_LOAD_NO_SCALE means that all coordinates and distances are returned
in font units. For scalable formats, these are relative to the "EM"
size, found in face->units_per_EM

To compute the scaled values:

  pix_value = character_pixel_size * distance / units_per_EM..

I was under the impression that this was pretty clear from the tutorial
and docs.. ??

Regards,

- David



reply via email to

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