deepin-wine和deepin-wine5换字体
Tofloor
poster avatar
thepoy
deepin
2020-08-06 17:56
Author
wine程序的字体是由注册表控制,而wine里的注册表只是一个文本文件而已,并不需要大费周章地在终端里调出注册表编辑器,再一个一个地改参数。

1、wine容器里有一个文件叫`user.reg`,这就是需要编辑的注册表文件


2、打开这个文件,拉到最下面,添加如图所示的一段参数


我替换的字体是方正悠黑_GBK,在user.reg文件里有映射参数,搜索youhei就能找到映射的字体名。

  1. [Software\\Wine\\Fonts\\Replacements] 1596677846
  2. #time=1d66b9224067152
  3. "Arial"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  4. "DFKai-SB"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  5. "FangSong"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  6. "KaiTi"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  7. "Microsoft JhengHei"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  8. "Microsoft YaHei"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  9. "MingLiU"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  10. "MSimSun"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  11. "PMingLiU"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  12. "SimHei"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  13. "SimKai"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  14. "SimSun"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  15. "\x4eff\x5b8b"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  16. "\x4eff\x5b8b_GB2312"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  17. "\x5b8b\x4f53"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  18. "\x5fae\x8f6f\x96c5\x9ed1"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  19. "\x6977\x4f53"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  20. "\x6977\x4f53_GB2312"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  21. "\x96b6\x4e66"="\x65b9\x6b63\x60a0\x9ed1_GBK"
  22. "\x9ed1\x4f53"="\x65b9\x6b63\x60a0\x9ed1_GBK"
Copy the Code






修改完了,再打开wine程序,看看字体是否已生效。



Reply Favorite View the author
All Replies

No replies yet