Add a test showing that GDI should not scale bitmap font metrics

Huw D M Davies h.davies1 at physics.ox.ac.uk
Wed Sep 1 03:59:53 CDT 2004


On Wed, Sep 01, 2004 at 05:44:19PM +0900, Dmitry Timoshkov wrote:
> Hello,
> 
> I had a wild guess whether GDI actually scales or not metrics for
> a bitmap font if a requested font size is not available and wrote
> a test case for it. No, GDI *does not* scale bitmap font metrics.

Well it does do integer scaling.  So if you request System (whose
normal size is 16) with 32 <= lfHeight < 48 you'll get a double sized
font with all the metrics scaled by a factor of two.  Wine doesn't do
this yet.  Your test shows that gdi doesn't do fractional scaling which
is indeed correct.

Huw.
-- 
Huw Davies
huw at codeweavers.com



More information about the wine-devel mailing list