WPS for Linux(ubuntu)字体配置(字体缺失解决办法)

在Linux系统中安装WPS时遇到字体缺失的问题,可以通过克隆并安装ttf-wps-fonts的Git仓库来解决。方法一通过运行install.sh脚本直接安装;方法二则是将字体移动到系统字体目录并重建字体缓存。按照提供的步骤操作,可以成功解决WPS字体缺失的错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题

装WPS for linux过程中,出现字体缺失错误

问题解决

the first way:
Change to the /tmp directory.

cd /tmp

Clone the Git repository.

git clone https://github.com/iamdh4/ttf-wps-fonts.git

Enter the directory.

cd ttf-wps-fonts

Run the install script.

sudo bash install.sh

Clean up the tmp directory.

rm -rf /tmp/ttf-wps-fonts

the second way:
Change to the /tmp directory.

cd /tmp

Clone the Git repository.

git clone https://github.com/iamdh4/ttf-wps-fonts.git

Create a sub directory in your system’s fonts directory. This is usually /usr/share/fonts, otherwise consult your distribution’s documentation.

sudo mkdir /usr/share/fonts/wps-fonts

Move fonts to the new directory.

sudo mv ttf-wps-fonts/* /usr/share/fonts/wps-fonts

Fix the file permissions.

sudo chmod 644 /usr/share/fonts/wps-fonts/*

Rebuild the font cache.

sudo fc-cache -vfs

Clean up the tmp directory.

rm -rf /tmp/ttf-wps-fonts

参看网站

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值