freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] patch requested for freetype2/internal header usage (usin


From: Chia-I Wu
Subject: Re: [ft-devel] patch requested for freetype2/internal header usage (using font_bbox)
Date: Fri, 27 Jan 2006 15:19:02 +0800
User-agent: Mutt/1.5.11

On Fri, Jan 27, 2006 at 06:14:48AM +0100, Werner LEMBERG wrote:
> > >  src/type1/t1objs.c (403):
> > >      root->bbox.xMin =   type1->font_bbox.xMin             >> 16;
> > >      root->bbox.yMin =   type1->font_bbox.yMin             >> 16;
> > >      root->bbox.xMax = ( type1->font_bbox.xMax + 0xFFFFU ) >> 16;
> > >      root->bbox.yMax = ( type1->font_bbox.yMax + 0xFFFFU ) >> 16;
> >
> > It looks to me that type1->font_matrix and type1->font_offset should
> > be applied to type1->font_bbox to get root->bbox, since glyphs are
> > always transformed by the driver on loading.
> Can you verify or falsify this, please?
The values given in the PFB are raw.  They should be transformed for use
in face->bbox.  Yet direct application of the transformations to the
FontBBox is wrong.  The transformations should be applied to each
glyph's bbox and the FontBBox should be recalculated.

As this is not affordable, maybe we should document this and provide
some means for access to FontMatrix.

-- 
Regards,
olv




reply via email to

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