解决wine中文显示为方框的方法
程序员文章站
2022-07-12 21:20:12
...
从windows拷贝字体,修改Wine注册表,解决乱码问题
从Windows系统里(路径:c:/windows/Fonts/)复制宋体(SimSun.ttf)到~/.wine/dosdevices/c:/windows/Fonts/:
cp /mnt/sys/Windows/Fonts/sim* ~/.wine/dosdevices/c\:/windows/Fonts/
从windows/system32找的rich20替换.wine/drive_c/windows/system32的rich20
然后修改Wine注册表, 终端输入regedit (界面和windows一样)
打开[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
MS Shell Dlg = SimSun
MS Shell Dlg 2 = SimSun
Tahoma = SimSun (手动新建字符串)</span>