0
点赞
收藏
分享

微信扫一扫

在linux中安装中文字体-centos和Ubuntu系统


RUN yum install mkfontscale fontconfig -y && \
mkdir /usr/share/fonts/chinese && \
cp /tmp/simsun.ttf /usr/share/fonts/chinese && \
mkfontscale && \
mkfontdir && \
fc-cache -fv && \
source /etc/profile

在ubuntu中安装中文字体

建立字体缓存

> # mkfontscale (如果提示 mkfontscale: command not found,则需要安装# sudo apt-get install ttf-mscorefonts-installer)
> # mkfontdir
> # fc-cache -fv (如果提示 fc-cache: command not found,则需要安装# sudo apt-get install fontconfig)


举报

相关推荐

0 条评论