http://bugs.winehq.org/show_bug.cgi?id=13600
Michal Suchanek hramrach@centrum.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|INVALID |
--- Comment #32 from Michal Suchanek hramrach@centrum.cz 2008-06-09 06:26:51 --- (In reply to comment #30)
(In reply to comment #29)
That's not different from Windows when required font is missing in the underlying system.
Yes, but Wine is not about replicating all deficiencies of Windows. It could do better sometimes ;-)
Predefined API behaviour and philosophical speculations are mutually exclusive things.
How is substituting fonts in a wine registry entry a predefined API behaviour?
Because Wine behaves the same way as Windows does when a font is missing.
However, this whole bug is about emulating the existence of a font, not about behaviour of Wine when a font is missing.
This is a minimal regedit file that fixes my application: REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "System"="MS Shell Dlg" [HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements] "MS UI Gothic"="Sazanami Gothic"
That's exactly which I was talking about - a missing Windows font. This clearly makes this bug invalid.
Not really. First a system font that is expected to exist on Windows should not be missing for Wine to create a usable runtime emulation layer.
Secondly looking at the trace it looks like the font in fact exists but is deficient. When running Notepad I get a font that is called 'System', looks as ugly as the one used in my test application when the fonts are not substituted (uppercase letters are shown using line width different from lowercase), and does not work for Japanese.
From the trace it looks like the font is jvgasys.fon. It claims to support
Japanese (the only script the font selection dialog offers for it is Japanese) but does not have the Japanes glyphs - at least for the Kana characters I tried.
trace:font:AddFontToList Loading font file "/sw/bin/../lib/../bin/../lib/../bin/../lib/../bin/../lib/../share/wine/fonts/jvgasys.fon" index 0 trace:font:AddFontToList pix_h 18 charset 128 dpi 96x96 pt 14 trace:font:AddFontToList Adding bitmap size h 20 w 8 size 13 x_ppem 18 y_ppem 18 trace:font:AddFontToList fsCsb = 00020000 00000000/00000000 00000000 00000000 00000000 trace:font:AddFontToList Added font L"System" L"Regular"