freetype
[Top][All Lists]
Advanced

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

Re: [ft] bbox?


From: Werner LEMBERG
Subject: Re: [ft] bbox?
Date: Sat, 21 Apr 2007 21:28:31 +0200 (CEST)

> Is there any way to get, for given font size (in points), resolution
> and transformation, a "bounding box" for a face i.e. rectangle,
> measured in points, that will be large enough to contain any of the
> font's glyphs, and offsets necessary to place a glyph correctly
> within such a rectangle?

FT_FaceRec -> bbox

> The only thing I can think of now is to iterate through the glyphs
> and look at their bitmap rows and bitmap-tops... :(

If you want an *exact* bounding box for just a few glyphs, you have to
do that.  To implement fast glyph rendering it is of great importance
to cache the results.


    Werner




reply via email to

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