http://bugs.winehq.org/show_bug.cgi?id=16325
--- Comment #159 from Qian Hong fracting@gmail.com 2012-02-12 14:25:16 CST --- (In reply to comment #158)
If you are using a Font Replacement the SystemLink in HKLM should remain empty, or I have done something wrong.
Sorry for confusing, I didn't mean the SystemLink in HKLM, I meant the SystemLink in [HKEY_CURRENT_USER\Software\Wine\FontLink\SystemLink]
CCMIW, the value of this SystemLink does not restore in user.reg, but it will dynamically built and show in regedit GUI?
For me there is something different between the first wineboot and the second wineboot, here is what I exactly did:
1. manually edit /usr/local/share/wine/wine.inf, add: HKCU,Software\Wine\Fonts\Replacements,"SimSun",,"WenQuanYi Micro Hei"
2. $ rm -rf ~/.wine
3. $ WINEDEBUG=+font regedit &> first_wineboot_font_trace.log
- After this I can get my font replacements setting correctly both in the regedit GUI and ~/.wine/user.reg.
- but I can't get a correct HKCU\Software\Wine\FontLink\SystemLink from regedit GUI.
- Also, My HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts *does not* contain such line: "SimSun (TrueType)"="Z:\usr\share\fonts\truetype\wqy\wqy-microhei.ttc"
(Will attach as user.reg.first.txt and system.reg.first.txt )
4. wait for wineserver quit, then $ WINEDEBUG=+font regedit &> second_wineboot_font_trace.log
- This time, I can get the correct HKCU\Software\Wine\FontLink\SystemLink from regedit GUI, but I can't find it in ~/.wine/user.reg
- My HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts *does* contains such line: "SimSun (TrueType)"="Z:\usr\share\fonts\truetype\wqy\wqy-microhei.ttc"
(Will attach the reg file manually exported from regedit GUI as correct-systemlink.reg.txt, also will attach user.reg.second.txt and system.reg.second.txt)
If I edit HKCU\Software\Wine\Fonts\Replacements from regedit GUI instead of presetting it in wine.inf, then no wineboot is needed.