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

被折叠的 条评论
为什么被折叠?



