Bug 815125 - /usr/share/wine/wine.inf lacks of default font replacement
Summary: /usr/share/wine/wine.inf lacks of default font replacement
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wine
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: 1.5.5
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-22 17:50 UTC by Ma Hsiao-chun
Modified: 2019-10-23 09:37 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-10 20:53:11 UTC
Type: Bug


Attachments (Terms of Use)
test (244.79 KB, patch)
2019-10-23 09:37 UTC, 6qiongtao
no flags Details | Diff

Description Ma Hsiao-chun 2012-04-22 17:50:42 UTC
CJK fonts used in Windows are indeed proprietary; we cannot get them from mscorefonts or other public channel. Therefore, font replacement is crucial for correct CJK text rendering in wine environment. End user may not know how to configure font replacement manually, so Sir maintainer may help them.

It is said that Ubuntu added the following lines to /usr/share/wine/wine.inf, which seems quite general:
HKCU,Software\Wine\Fonts\Replacements,"SimSun",,"WenQuanYi Micro Hei"
HKCU,Software\Wine\Fonts\Replacements,"PMingLiU",,"WenQuanYi Micro Hei"
HKCU,Software\Wine\Fonts\Replacements,"MS Gothic",,"Ume Gothic"
HKCU,Software\Wine\Fonts\Replacements,"MS PGothic",,"Ume P Gothic"
HKCU,Software\Wine\Fonts\Replacements,"MS UI Gothic",,"Ume UI Gothic"
HKCU,Software\Wine\Fonts\Replacements,"MS Mincho",,"Ume Mincho"
HKCU,Software\Wine\Fonts\Replacements,"MS PMincho",,"Ume P Mincho"
HKCU,Software\Wine\Fonts\Replacements,"Batang",,"UnBatang"
HKCU,Software\Wine\Fonts\Replacements,"Dotum",,"UnDotum"
HKCU,Software\Wine\Fonts\Replacements,"Gulim",,"UnDotum"
HKCU,Software\Wine\Fonts\Replacements,"Arial Unicode MS",,"Droid Sans Fallback"

Comment 1 Qian Hong 2012-04-23 04:53:07 UTC
Hello, I can confirm this issue. 

Upstream wine developer Aric Stewart suggested to add the default font replacement at the distribution level.

Reference:
http://bugs.winehq.org/show_bug.cgi?id=16325#c133
http://bugs.winehq.org/show_bug.cgi?id=16325#c167
http://bugs.winehq.org/show_bug.cgi?id=16325#c169

Best regards.

Comment 2 Andre Klapper 2012-06-10 09:49:09 UTC
Could somebody add the keyword "i18n" please?

Comment 3 Ma Hsiao-chun 2012-06-10 16:34:48 UTC
--- wine.inf	2012-06-11 00:29:02.385823405 +0800
+++ wine.inf.ok	2012-06-10 16:01:43.656476330 +0800
@@ -617,6 +617,17 @@
 HKLM,%FontSubStr%,"Times New Roman Greek,161",,"Times New Roman,161"
 HKLM,%FontSubStr%,"Times New Roman TUR,162",,"Times New Roman,162"
 HKLM,System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts,"LogPixels",0x10003,0x00000060
+HKCU,Software\Wine\Fonts\Replacements,"SimSun",,"WenQuanYi Zen Hei"
+HKCU,Software\Wine\Fonts\Replacements,"PMingLiU",,"WenQuanYi Zen Hei"
+HKCU,Software\Wine\Fonts\Replacements,"MS Gothic",,"Ume Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS PGothic",,"Ume P Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS UI Gothic",,"Ume UI Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS Mincho",,"Ume Mincho"
+HKCU,Software\Wine\Fonts\Replacements,"MS PMincho",,"Ume P Mincho"
+HKCU,Software\Wine\Fonts\Replacements,"Batang",,"UnBatang"
+HKCU,Software\Wine\Fonts\Replacements,"Dotum",,"UnDotum"
+HKCU,Software\Wine\Fonts\Replacements,"Gulim",,"UnDotum"
+HKCU,Software\Wine\Fonts\Replacements,"Arial Unicode MS",,"Droid Sans Fallback"
 
 [MCI]
 HKLM,%Mci32Str%,"AVIVideo",,"mciavi32.dll"

Comment 4 Ma Hsiao-chun 2012-06-10 16:43:50 UTC
WenQuanYi Micro Hei is not installed by default in Fedora.
And I just checked the release notes of Fedora 17.
It states that `The default Simplified Chinese Font has changed from "WenQuanYi Zen Hei" to "WenQuanYi Zen Hei Sharp"`.
So I changed my patch slightly to reflect such change.

--- wine.inf	2012-06-11 00:40:07.678332425 +0800
+++ wine.inf.ok	2012-06-11 00:34:35.574349003 +0800
@@ -617,6 +617,17 @@
 HKLM,%FontSubStr%,"Times New Roman Greek,161",,"Times New Roman,161"
 HKLM,%FontSubStr%,"Times New Roman TUR,162",,"Times New Roman,162"
 HKLM,System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts,"LogPixels",0x10003,0x00000060
+HKCU,Software\Wine\Fonts\Replacements,"SimSun",,"WenQuanYi Zen Hei Sharp"
+HKCU,Software\Wine\Fonts\Replacements,"PMingLiU",,"WenQuanYi Zen Hei Sharp"
+HKCU,Software\Wine\Fonts\Replacements,"MS Gothic",,"Ume Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS PGothic",,"Ume P Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS UI Gothic",,"Ume UI Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS Mincho",,"Ume Mincho"
+HKCU,Software\Wine\Fonts\Replacements,"MS PMincho",,"Ume P Mincho"
+HKCU,Software\Wine\Fonts\Replacements,"Batang",,"UnBatang"
+HKCU,Software\Wine\Fonts\Replacements,"Dotum",,"UnDotum"
+HKCU,Software\Wine\Fonts\Replacements,"Gulim",,"UnDotum"
+HKCU,Software\Wine\Fonts\Replacements,"Arial Unicode MS",,"Droid Sans Fallback"
 
 [MCI]
 HKLM,%Mci32Str%,"AVIVideo",,"mciavi32.dll"

Comment 5 Fedora Update System 2012-07-05 15:57:17 UTC
wine-mono-0.0.4-7.fc17,wine-1.5.8-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/wine-mono-0.0.4-7.fc17,wine-1.5.8-1.fc17

Comment 6 Fedora Update System 2012-07-05 15:59:39 UTC
wine-1.5.8-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/wine-1.5.8-1.fc16

Comment 7 Fedora Update System 2012-07-06 21:28:58 UTC
Package wine-mono-0.0.4-7.fc17, wine-1.5.8-1.fc17, mingw-wine-gecko-1.6-1.fc17, mingw-crt-2.0.999-0.6.trunk.20120601.fc17, mingw-headers-2.0.999-0.6.trunk.20120601.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing wine-mono-0.0.4-7.fc17 wine-1.5.8-1.fc17 mingw-wine-gecko-1.6-1.fc17 mingw-crt-2.0.999-0.6.trunk.20120601.fc17 mingw-headers-2.0.999-0.6.trunk.20120601.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10358/mingw-wine-gecko-1.6-1.fc17,mingw-crt-2.0.999-0.6.trunk.20120601.fc17,mingw-headers-2.0.999-0.6.trunk.20120601.fc17,wine-mono-0.0.4-7.fc17,wine-1.5.8-1.fc17
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-07-10 20:53:11 UTC
wine-mono-0.0.4-7.fc17, wine-1.5.8-1.fc17, mingw-wine-gecko-1.6-1.fc17, mingw-crt-2.0.999-0.6.trunk.20120601.fc17, mingw-headers-2.0.999-0.6.trunk.20120601.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-07-14 21:58:39 UTC
wine-1.5.8-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Kevin Kofler 2012-07-15 22:34:43 UTC
+HKCU,Software\Wine\Fonts\Replacements,"MS Gothic",,"Ume Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS PGothic",,"Ume P Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS UI Gothic",,"Ume UI Gothic"
+HKCU,Software\Wine\Fonts\Replacements,"MS Mincho",,"Ume Mincho"
+HKCU,Software\Wine\Fonts\Replacements,"MS PMincho",,"Ume P Mincho"

Uhm, those "Ume" fonts aren't installed by default in Fedora either, are they? In fact, I don't find them in comps at all, do we even have them in Fedora? The default fonts for Japanese in Fedora are the vlgothic-fonts. (There are a couple Mincho fonts, too, but none installed by default.)

Comment 11 Andreas Bierfert 2012-07-18 20:07:32 UTC
Thanks for the hint. Fixed/Improved in 1.5.9.

Comment 12 6qiongtao 2019-10-23 09:37:09 UTC
Created attachment 1628238 [details]
test


Note You need to log in before you can comment on or make changes to this bug.