[Top][All Lists]
[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
- [ft] bbox?, Dmitri Hrapof, 2007/04/21
- Re: [ft] bbox?,
Werner LEMBERG <=