On Tue, Apr 04, 2017 at 11:25:18PM +0800, Jactry Zeng wrote:
This patch changes default interface typeface of CJK from Mincho font to Gothic font. Windows had made this change since Windows Vista. macOS and most of Linux distros are using Gothic typeface by default for CJK, too.
This seems to be confirmed by the great oracle of truth that is Wikipedia.
Signed-off-by: Huw Davies huw@codeweavers.com
I'm not sure about this. On my Japanese Windows 7, MS Shell Dlg points to MS UI Gothic, not Meiryo. If I remember correctly, it also points to legacy Mincho font in Chinese/Korean environment.
I'm afraid that this change also affects dialog base units (e.g. GetDialogBaseUnits). A lot of application dialogs depend on default font's dialog units. Though Windows 7 introduces new type faces, we should use legacy font face in GDI for that reason.
Instead of MS Shell Dlg, how about using "MS Shell Dlg 2" for system dialog windows?
Regards, Akihiro Sagawa
On 5 Apr 2017, at 15:03, Akihiro Sagawa sagawa.aki@gmail.com wrote:
On Tue, Apr 04, 2017 at 11:25:18PM +0800, Jactry Zeng wrote:
This patch changes default interface typeface of CJK from Mincho font to Gothic font. Windows had made this change since Windows Vista. macOS and most of Linux distros are using Gothic typeface by default for CJK, too.
This seems to be confirmed by the great oracle of truth that is Wikipedia.
Signed-off-by: Huw Davies huw@codeweavers.com
I'm not sure about this. On my Japanese Windows 7, MS Shell Dlg points to MS UI Gothic, not Meiryo. If I remember correctly, it also points to legacy Mincho font in Chinese/Korean environment.
I'm afraid that this change also affects dialog base units (e.g. GetDialogBaseUnits). A lot of application dialogs depend on default font's dialog units. Though Windows 7 introduces new type faces, we should use legacy font face in GDI for that reason.
Instead of MS Shell Dlg, how about using "MS Shell Dlg 2" for system dialog windows?
Ok, so it sounds like this patch may not be correct.
Jactry, could you tell us what MS Shell Dlg and MS Shell Dlg 2 map to on your system? Look under HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
Thanks, Huw.
Hi, 2017-04-06 1:22 GMT+08:00 Huw Davies huw@codeweavers.com:
Ok, so it sounds like this patch may not be correct.
Jactry, could you tell us what MS Shell Dlg and MS Shell Dlg 2 map to on your system? Look under HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
Thanks for review!
In my Simplified Chinese WIndows 7, they are: MS Shell Dlg -> Mircrosoft Sans Serif MS Shell Dlg 2 -> Tahoma
And in HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontLink\FontMapper, there are: Microsoft Sans Serif -> SIMSUN.TTC,SimSun MINGLIU.TTC,PMingLiU MSGOTHIC.TTC, MS UI Gothic BATANG.TTC,Batang Tahoma -> SIMSUN.TTC,SimSun MINGLIU.TTC,PMingLiU MSGOTHIC.TTC, MS UI Gothic
So I think Akihiro is right, MS Shell Dlg is still links to SimSun/MS UI Gothic/Gulim/PMingLiU in Windows 7. And MS Shell Dlg 2 does that, too. So using MS Shell Dlg 2 for changing default interface typeface may be not a good idea?
How about implementing a new logical font - Wine Shell Dlg - and using it for Wine's builtin interface, such as dialog, menu text...
About CJK font: https://en.wikipedia.org/wiki/List_of_CJK_fonts
On 6 Apr 2017, at 04:11, Jactry Zeng jactry92@gmail.com wrote:
In my Simplified Chinese WIndows 7, they are: MS Shell Dlg -> Mircrosoft Sans Serif MS Shell Dlg 2 -> Tahoma
And in HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontLink\FontMapper, there are: Microsoft Sans Serif -> SIMSUN.TTC,SimSun MINGLIU.TTC,PMingLiU MSGOTHIC.TTC, MS UI Gothic BATANG.TTC,Batang Tahoma -> SIMSUN.TTC,SimSun MINGLIU.TTC,PMingLiU MSGOTHIC.TTC, MS UI Gothic
So I think Akihiro is right, MS Shell Dlg is still links to SimSun/MS UI Gothic/Gulim/PMingLiU in Windows 7. And MS Shell Dlg 2 does that, too. So using MS Shell Dlg 2 for changing default interface typeface may be not a good idea?
How about implementing a new logical font - Wine Shell Dlg - and using it for Wine's builtin interface, such as dialog, menu text…
Well no, we want to do it in the same way that Windows does. I assume that the DEFAULT_GUI_FONT is MS Shell Dlg - it is at least on the Japanese win7 testbot vm.
Huw.