Install Windows Fonts on Linux
Preface In Linux systems, after installing WPS, due to copyright issues, it does not come with fonts, and these fonts are necessary for daily use. Below is an introduction to the method of adding fonts to the Linux system. Operation Since the Windows system comes with complete fonts, they can be copied from the installed Windows system. First, execute the command: mkdir /usr/share/fonts/wps_symbol_fonts/ //Create the WPS font directory Then go to the Windows font directory, C:/Win
目录2 个章节
Preface
After installing WPS on a Linux system, fonts are not included by default due to copyright issues, even though these fonts are commonly used. Below is a guide on how to add fonts to a Linux system.
Operations
- Since Windows comes with a complete set of fonts, you can copy them from your installed Windows system. First, execute the following command:
mkdir /usr/share/fonts/wps_symbol_fonts/ //Create WPS font directory
Then navigate to the Windows fonts directory, C:/Windows/Fonts/, enter that directory, open a terminal there, and execute the following commands:
cp *.ttf /usr/share/fonts/wps_symbol_fonts/
cp *.TTF /usr/share/fonts/wps_symbol_fonts/
cp *.otf /usr/share/fonts/wps_symbol_fonts/
cp simsun.ttc /usr/share/fonts/wps_symbol_fonts/
Copy the ttf, otf, TTF, and simsun.ttc font files to the newly created wps_symbol_fonts directory under the Linux system.
Note: For ttc files, only copy simsun.ttc (SimSun). Copying all of them will cause system font confusion and prevent WPS from inputting Chinese. You can verify which specific ttc file causes the issue by copying them one by one — if an error occurs, simply delete it.
- Add read and execute permissions, and generate the font cache. Commands:
cd /usr/share/fonts/
chmod 755 wps_symbol_fonts/
cd /usr/share/fonts/wps_symbol_fonts/
chmod 644 *
mkfontscale
mkfontdir
fc-cache //Update font cache
Note: As long as you follow this method, all Windows fonts can be added to Linux. It is recommended not to place font files directly in the fonts directory; instead, put them in the wps_symbol_fonts subdirectory to avoid conflicts with system fonts, which may also prevent WPS from inputting Chinese.
_EOF_
Install Windows Fonts on Linux
- 本文作者:
- 程序设计实验室
- 版权声明:
- 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
相关文章
别再手动复制SSH公钥了,Linux服务器一键从GitHub快速导入公钥
输入GitHub用户名就自动导入SSH公钥?Ubuntu这懒人功能挺省事。原理不就是爬取`https://github.com/用户名.keys`吗?手动用`curl`也能实现,装`ssh-import-id`更高效,但谁稀罕这些花里胡哨的。
2026-03-11 · 系统配置 · 约 1 分钟
关闭CentOS-6-防火墙,关闭Linux系统防火墙
前言 最近部署服务的时候需要临时关闭一下防火墙,所以记个笔记,如何关闭CentOS防火墙。 查看系统版本 输入:cat /etc/issue 查看版本 通过service关闭 service命令开启以及关闭防火墙为即时生效,下次重启机器的时候会自动复原。 查看防火墙状态: service iptables status 记得在CentOS6.9中是输入iptables,网上有些教程使用serv
2025-10-27 · 系统配置 · 约 1 分钟
配置MariaDB数据库服务端远程访问
操作步骤 开启远程访问权限 连接MariaDB数据库,执行以下命令开启远程访问。 grant all privileges on *.* to 'root'@'192.168.248.248' identified by 'password'; flush privileges; 如果需要任意IP地址访问,就把IP地址换成%。 修改配置文件 在网络上能搜索到的资料都只说了第一点,然而亲测之后并没有
2025-10-27 · 系统配置 · 约 1 分钟
Linux终端输入密码显示星号
Linux默认密码星号?这体验真不错。一行sudoers配置搞定,真就有人非要用脚本整这些。关闭?那不是自讨没趣吗。
2025-10-01 · 系统配置 · 约 1 分钟
讨论
共 0 条加载评论中…