System font width
Richard Cohen
richard at daijobu.co.uk
Wed Sep 22 14:00:21 CDT 2004
Huw D M Davies wrote:
> On Tue, Sep 21, 2004 at 07:40:17AM -0700, Jon Griffiths wrote:
>
>>Hi,
>>
>>I have an app that calls GetObject on SYSTEM_FONT and then uses the
>>returned LOGFONT.lfWidth in a calculation. Wine currently returns 0
>>for the width, which causes a divide by zero error here.
>>
>>Testing under XP home shows that the returned with is 7 for the
>>system font. This patch changes the width specified in the stock font
>
> This probably won't hurt anything. The correct way would be to load
> the system font and get its metrics.
>
Shouldn't the value depend on the screen dpi?
Richard.
More information about the wine-devel
mailing list