gdiplus: Don't settle on a font size until absolutely necessary.
commit11f0662c60efe8f9fdbbafaf920000d15f4846b4
authorVincent Povirk <vincent@codeweavers.com>
Mon, 4 Apr 2011 22:18:23 +0000 (4 17:18 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 5 Apr 2011 11:36:56 +0000 (5 13:36 +0200)
treeacf6302c3c0c5f1ee521c1cc2020b82b55e9657f
parentbe0af56be3ba2f6e03b22ed747ebcd5500e74ed0
gdiplus: Don't settle on a font size until absolutely necessary.

When we create a new font, we should store its height in a REAL field so
we don't have to round it. Further, when we calculate the width, we should
base the calculation on the metrics of a font at the height we will use, to
prevent rounding errors when the graphics transform will enlarge the font.
dlls/gdiplus/font.c
dlls/gdiplus/gdiplus_private.h
dlls/gdiplus/graphics.c