Wine fonts too big for their input fields.

Robert Shearman rob at
Wed Apr 12 09:47:31 CDT 2006

Huw D M Davies wrote:

>I had some fun with this a month or two ago.  See the
>test_margins_font_change test and calc_min_margin_size in the actual
>code.  The deal seems to be that for 'small' edit controls
>EC_USEFONTINFO results in no margin.  'Small' is currently defined to
>be smaller than the extents of the (four character) string "'**'",
>that's close but not quite how Windows does it.

Does GdiGetCharDimensions give you a better result?

That is the algorithm used by other user32 controls to work out the 
"size" of a font.

Robert Shearman

More information about the wine-devel mailing list