美文网首页
WSL-Ubuntu安装中文语言

WSL-Ubuntu安装中文语言

作者: Anne_胖达 | 来源:发表于2021-12-06 13:59 被阅读0次

    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

    相关文章

      网友评论

          本文标题:WSL-Ubuntu安装中文语言

          本文链接:https://www.haomeiwen.com/subject/qsnkxrtx.html