首先乱码的可能是本地是英文环境而wine需要的是中文环境,需要下面的命令

echo "alias wine='LANG=zh_CN.UTF-8 wine'" >> ~/.bashrc

在crossover下,需要在bottle下面的cxbottle.conf文件中[EnvironmentVariables]后面添加 “LANG” = “zh_CN.UTF-8”.

有些需要特殊字体,建议将msfontscore都安装上。

另外需要安装fontconfig.i686,建议执行如下命令安装:

yum install lcms2.i686 lcms2 isdn4k-utils.i686 isdn4k-utils mesa-libOSMesa gnutls.i686 mesa-libOSMesa.i686 gstreamer1-plugins-ugly gstreamer1-libav fontconfig.i686 fontconfig alsa-lib.i686 alsa-plugins-pulseaudio.i686 nas-libs.i686 isdn4k-utils.i686 dbus-libs.i686 esound-libs.i686 cups-libs.i686 esound-libs.i686 libgphoto2.i686 gstreamer-plugins-base.i686 gsm.i686 libjpeg-turbo.i686 openssl.i686 libxml2.i686 pulseaudio-libs.i686 glibc.i686 glibc.x86_64 zlib.i686 zlib.x86_64 libstdc++-static

删除掉[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]下的配置

 

然后Wine运行regedit注册表,crossover如下处理:

/opt/cxoffice/bin/regedit < " REGEDIT4

[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="2"
"FontSmoothingGamma"=dword:00000578
"FontSmoothingOrientation"=dword:00000001
"FontSmoothingType"=dword:00000002

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Arial"="YaHei.Consolas.ttf"
"Arial Black"="YaHei.Consolas.ttf"
"Arial Baltic,186"="YaHei.Consolas.ttf"
"Arial CE,238"="YaHei.Consolas.ttf"
"Arial CYR,204"="YaHei.Consolas.ttf"
"Arial Greek,161"="YaHei.Consolas.ttf"
"Arial TUR,162"="YaHei.Consolas.ttf"
"Courier New Baltic,186"="YaHei.Consolas.ttf"
"Courier New CE,238"="YaHei.Consolas.ttf"
"Courier New CYR,204"="YaHei.Consolas.ttf"
"Courier New Greek,161"="YaHei.Consolas.ttf"
"Courier New TUR,162"="YaHei.Consolas.ttf"
"Fixedsys"="YaHei.Consolas.ttf"
"Georgia"="YaHei.Consolas.ttf"
"Gulim"="YaHei.Consolas.ttf"
"Helv"="YaHei.Consolas.ttf"
"Helvetica"="YaHei.Consolas.ttf"
"Lucida Console"="YaHei.Consolas.ttf"
"Lucida Sans"="YaHei.Consolas.ttf"
"Microsoft Sans Serif"="YaHei.Consolas.ttf"
"MingLiU"="YaHei.Consolas.ttf"
"MS Shell Dlg"="YaHei.Consolas.ttf"
"MS Shell Dlg 2"="YaHei.Consolas.ttf"
"MS Dialog"="YaHei.Consolas.ttf"
"MS Gothic"="YaHei.Consolas.ttf"
"MS Mincho"="YaHei.Consolas.ttf"
"MS PGothic"="YaHei.Consolas.ttf"
"MS PMincho"="YaHei.Consolas.ttf"
"MS Sans Serif"="YaHei.Consolas.ttf"
"MS Serif"="YaHei.Consolas.ttf"
"MS UI Gothic"="YaHei.Consolas.ttf"
"NSimSun"="YaHei.Consolas.ttf"
"Palatino Linotype"="YaHei.Consolas.ttf"
"PMingLiU"="YaHei.Consolas.ttf"
"Roman"="YaHei.Consolas.ttf"
"Songti"="YaHei.Consolas.ttf"
"SimFang"="YaHei.Consolas.ttf"
"SimHei"="YaHei.Consolas.ttf"
"SimSun"="YaHei.Consolas.ttf"
"SimKai"="YaHei.Consolas.ttf"
"System"="YaHei.Consolas.ttf"
"Tahoma"="YaHei.Consolas.ttf"
"Terminal"="YaHei.Consolas.ttf"
"Times"="YaHei.Consolas.ttf"
"Times New Roman Baltic,186"="YaHei.Consolas.ttf"
"Times New Roman CE,238"="YaHei.Consolas.ttf"
"Times New Roman CYR,204"="YaHei.Consolas.ttf"
"Times New Roman Greek,161"="YaHei.Consolas.ttf"
"Times New Roman TUR,162"="YaHei.Consolas.ttf"
"Tms Rmn"="YaHei.Consolas.ttf"
"Trebuchet MS"="YaHei.Consolas.ttf"
"Verdana"="YaHei.Consolas.ttf"
"宋体"="YaHei.Consolas.ttf"

[HKEY_CURRENT_USER\Software\\Wine\\X11 Driver]
"ClientSideAntiAliasWithCore"="Y"
"ClientSideAntiAliasWithRender"="Y"
"ClientSideWithRender"="N"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Shell Dlg"="YaHei Consolas Hybrid"
"Tms Rmn"="YaHei Consolas Hybrid"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
"LogPixels"=dword:00000070

"

最后修改wine configuration下的Desktop Integration,在Item下的Menu Text的Font size修改为"YaHei Consolas Hybrid" 大小为9。


Linux下wine字体配置来自于OenHan

链接为:https://oenhan.com/linux-wine-crossover

发表回复