linux系统配置中文字体,playwright中文乱码

复制字段

从本地Windows (C:\Windows\Fonts ) 复制一个中文字体simsun.tcc

在Linux系统上安装字体

yum -y install fontconfig
mkdir -p /usr/share/fonts/chinese
cd /usr/share/fonts/chinese

# 将simsun.tcc上传到/usr/share/fonts/chinese,并修改权限:
chmod -R 755 /usr/share/fonts/chinese
fc-cache -fv

image

posted @ 2024-07-02 18:32  chenzechao  阅读(413)  评论(0)    收藏  举报