首页 > Configuration > Linux下wine字体配置

Linux下wine字体配置

Configuration 2015-11-17

另外一种乱码的可能是本地是英文环境而wine需要的是中文环境,需要下面的命令

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

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

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

Wine也就是运行regedit注册表,crossover如下处理:

/opt/cxoffice/bin/regedit < "
REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
"FIXEDFON.FON"=""
"FONTS.FON"=""
"LogPixels"=dword:00000070
"OEMFONT.FON"=""
[HKEY_CURRENT_USER\Software\\Wine\\Fonts\\Replacements]
@="WenQuanYi Micro Hei"
"Arial"="WenQuanYi Micro Hei"
"Arial Baltic,186"="WenQuanYi Micro Hei"
"Arial CE,238"="WenQuanYi Micro Hei"
"Arial CYR,204"="WenQuanYi Micro Hei"
"Arial Greek,161"="WenQuanYi Micro Hei"
"Arial TUR,162"="WenQuanYi Micro Hei"
"Courier New Baltic,186"="WenQuanYi Micro Hei"
"Courier New CE,238"="WenQuanYi Micro Hei"
"Courier New CYR,204"="WenQuanYi Micro Hei"
"Courier New Greek,161"="WenQuanYi Micro Hei"
"Courier New TUR,162"="WenQuanYi Micro Hei"
"Fixedsys"="WenQuanYi Micro Hei"
"Helv"="WenQuanYi Micro Hei"
"Helvetica"="WenQuanYi Micro Hei"
"Microsoft Sans Serif"="WenQuanYi Micro Hei"
"MingLiU"="WenQuanYi Micro Hei"
"MS UI Gothic"="WenQuanYi Micro Hei"
"MS Shell Dlg"="WenQuanYi Micro Hei"
"MS Shell Dlg 2"="WenQuanYi Micro Hei"
"PMingLiU"="WenQuanYi Micro Hei"
"Songti"="WenQuanYi Micro Hei"
"System"="WenQuanYi Micro Hei"
"Tahoma"="WenQuanYi Micro Hei"
"Terminal"="WenQuanYi Micro Hei"
"Times"="WenQuanYi Micro Hei"
"Times New Roman Baltic,186"="WenQuanYi Micro Hei"
"Times New Roman CE,238"="WenQuanYi Micro Hei"
"Times New Roman CYR,204"="WenQuanYi Micro Hei"
"Times New Roman Greek,161"="WenQuanYi Micro Hei"
"Times New Roman TUR,162"="WenQuanYi Micro Hei"
"Tms Rmn"="WenQuanYi Micro Hei"
"Simsun"="WenQuanYi Micro Hei"
"宋体"="WenQuanYi Micro Hei"
[HKEY_CURRENT_USER\Software\\Wine\\X11 Driver]
"ClientSideAntiAliasWithCore"="Y"
"ClientSideAntiAliasWithRender"="Y"
"ClientSideWithRender"="Y"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Shell Dlg"="WenQuanYi Micro Hei"
"MS Shell Dlg 2"="WenQuanYi Micro Hei"
"System"="WenQuanYi Micro Hei"
[HKEY_CURRENT_USER\Control Panel\\Colors]
"ActiveBorder"="239 235 230"
"ActiveTitle"="0 153 11"
"AppWorkspace"="128 128 128"
"Background"="58 110 165"
"ButtonAlternateFace"="180 180 180"
"ButtonDkShadow"="64 64 64"
"ButtonFace"="232 227 221"
"ButtonHilight"="255 255 255"
"ButtonLight"="239 235 230"
"ButtonShadow"="128 128 128"
"ButtonText"="0 0 0"
"GradientActiveTitle"="166 202 240"
"GradientInactiveTitle"="192 192 192"
"GrayText"="128 128 128"
"Hilight"="0 153 11"
"HilightText"="255 255 255"
"HotTrackingColor"="0 0 255"
"InactiveBorder"="192 192 192"
"InactiveTitle"="232 227 221"
"InactiveTitleText"="0 0 0"
"InfoText"="0 0 0"
"InfoWindow"="255 255 225"
"Menu"="232 227 221"
"MenuBar"="232 227 221"
"MenuHilight"="0 0 0"
"MenuText"="0 0 0"
"Scrollbar"="239 235 230"
"TitleText"="255 255 255"
"Window"="255 255 255"
"WindowFrame"="0 0 0"
"WindowText"="0 0 0"

"

Linux下wine字体配置来自于OenHan,链接为:http://oenhan.com/linux-wine-crossover
更多阅读