http://bugs.winehq.org/show_bug.cgi?id=11861
--- Comment #8 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2008-03-30 09:34:36 --- Created an attachment (id=11742) --> (http://bugs.winehq.org/attachment.cgi?id=11742) patch for the invalid character
The GetTextMetrics are correct, the problem is in GetGlyphIndices - it was tested on a bitmap font (probably due to a bug - it took me a while to notice it) and didn't convert the default character to its glyph index. The attached patch should work for font where the glyph index of char 0x1f is 0. Maybe it would be better to access the OS/2 table directly and use glyph 0 when usDefaultChar is 0.
I see it is not clearly written in the previous comment that the main problem is that the font links are not created automatically (Windows creates them in all locales. There is also a problem to what fonts to link to on Linux).