freetype-devel
[Top][All Lists]
Advanced

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

[Devel] Re: FIXED: viewing problems with CFF fonts


From: Tom Kacvinsky
Subject: [Devel] Re: FIXED: viewing problems with CFF fonts
Date: Wed, 29 Nov 2000 22:19:07 -0500 (EST)

I guess I need to find out FreeType's notion of descender (positive, or 
negative?).
If it is supposed to be positive, then we should have:

    /* make sure the descender is a positive number */
    root->descender = (FT_Short)root->bbox.yMin;
    if ( root->descender < 0 )
      root->descender = -root->descender;

And then

    root->height = ( ( root->ascender + root->descender ) * 12 ) / 10;

Tom

On Wed, 29 Nov 2000, Keith Packard wrote:

>
> >          root->descender    = (FT_Short)root->bbox.yMin;
> > +        root->height       = ( ( root->ascender - root->descender ) * 12 ) 
> > / 10;
>
> Shouldn't that be:
>
>          root->descender    = -(FT_Short)root->bbox.yMin;
>          root->height       = ( ( root->ascender + root->descender ) * 12 ) / 
> 10;
>
> In my experience, descent measures the distance from the baseline to the
> bottom of the glyph and is positive for glyphs which extend below the
> baseline.  Of course, I don't understand the context of this code and may
> be completely off base.
>




reply via email to

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