freetype-devel
[Top][All Lists]
Advanced

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

[Devel] FIX? [was: Non-integer bbox for T1 font?]


From: Tom Kacvinsky
Subject: [Devel] FIX? [was: Non-integer bbox for T1 font?]
Date: Tue, 6 Mar 2001 13:10:01 -0500 (EST)

Attached is patch fro t1load.c that places 16.16 fixed numbers (16
bits of integer, 16 bits of fraction) into the font bbox array.  To
get the integer part in your code, just shift right 16 bits.  There
will be some rounding errors (rounding up/down when it should be vice
versa), but i imagine you can get around that...

Let me know if that fixes your problem.  I would appreciate comments
from others as well.

Tom

On Tue, 6 Mar 2001, Leonard Rosenthol wrote:

> At 11:39 AM -0500 3/6/01, Tom Kacvinsky wrote:
>
> >How did the font choke FreeType?  I can't get it to choke FT...  My tesing
> >doesn't match your environment, of course...
>
>       Trying to render it after converting the reals to ints (since
> we had previously only expected to see integer box values).
>
>
> >Oh, BTW, the way, you are correct, this font was made from a MM font.  That
> >would explain the "real" number bbox.
> >
> >
>       So is it valid then??
>

Attachment: t1load.diff
Description: Text document


reply via email to

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