[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Re: /UnderlinePosition and /UnderlineThickness
From: |
Werner LEMBERG |
Subject: |
Re: [Devel] Re: /UnderlinePosition and /UnderlineThickness |
Date: |
Fri, 06 Jun 2003 07:03:21 +0200 (CEST) |
> > Did not check the other new "FT_Fixed *" variables, maybe there is
> > also a hidden multiplication with 1000?
>
> I think you found a long standing bug. It looks like nobody ever
> examined the fields parsed with T1_FIELD_FIXED (or
> T1_FIELD_FIXED_P). The culprit is in src/psaux/psobjs.c:
> [...]
I've fixed that now, please test.
> The '3' is the power of ten the number gets multiplied with *in
> addition* to being shifted left 16 bits. So all numbers are
> multiplied by 65536000.
> This just doesn't make sense. And an overflow occurs for values
> larger than around +/- 32. E.g. underline_position (supposedly -100)
> contains complete nonsense (2036334592 = 0x79600000 =
> -100*65536*1000+2^32+2^32).
I think the idea to do this was for blue_scale only which can be very
small and should be parsed exactly. The same goes for the font
matrix entries.
David, *please* check this!
Werner