On a separate note, the added test succeeds on Wine only with default non-antialiased font quality. Setting lf.lfQuality = CLEARTYPE_QUALITY; before creating font makes it fail at every width here. I think the only way this can succeed is if we had all the same metrics for all the load targets from freetype (which is not the case), while as far as I could see (testing through some limited set of fonts) glyph metrics do not differ for different antialiasing options on Windows.