WSL-Ubuntu安装中文语言

2021-12-06  本文已影响0人  Anne_胖达

1.安装中文语言包

sudo apt install language-pack-zh-hans

2.运行dpkg-reconfigure locales,选择en_US.UTF-8和zh_CN.UTF-8, 选择zh_CN.UTF-8为默认语言

sudo dpkg-reconfigure locales

3.安装字体管理工具fontconfig

sudo apt install fontconfig

4.安装Windows字体
复制windows的字体到/usr/share/fonts/下

sudo cp -r /mnt/c/Windows/Fonts /usr/share/fonts/windows

5.刷新字体缓存

fc-cache -f -v

6.查看字体列表

fc-list :lang=zh-cn

7.重启wsl

上一篇下一篇

猜你喜欢

热点阅读