gdi32: pOS2->xAvgCharWidth can be negative however tmAvgCharWidth needs a positive value

Dmitry Timoshkov dmitry at baikal.ru
Tue Feb 21 09:39:27 CST 2012


Aric Stewart <aric at codeweavers.com> wrote:

> Windows response appears to not allow the user to install the fonts at 
> all.  It reports any of the fonts I have which have negative OS/2 
> xAveCharWidth as invalid fonts when I try to install them.
> 
> This blocks out a few of the main Mac UI fonts.
> 
> -aric
> 
> On 2/20/12 10:49 PM, Dmitry Timoshkov wrote:
> > Aric Stewart<aric at codeweavers.com>  wrote:
> >
> >> -    TM.tmAveCharWidth = (pFT_MulFix(pOS2->xAvgCharWidth, x_scale) + 32)>>  6;
> >> +    TM.tmAveCharWidth = (pFT_MulFix(abs(pOS2->xAvgCharWidth), x_scale) + 32)>>  6;
> >
> > Did you test what Windows does in that case?

So, what Mac does in that case? Why do you think that your fix is correct?

-- 
Dmitry.



More information about the wine-devel mailing list