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 许可协议。转载请注明出处!
相关文章
小心误关了NAS服务器!修改Linux的电源键功能
NAS居然离线关机了?电源键被傻逼系统接管了。改改`logind.conf`让这玩意忽略电源键,省得误操作重启关机。谁用谁知道,别真当NAS是玩具。
2025-10-27 · 系统配置 · 约 1 分钟
在Nginx上配置https加密服务器
前言 最近开发微信小程序需要使用Https,于是折腾了一番。 超简单步骤 1. 申请SSL证书 一般云服务器提供商就会提供这种服务,我在腾讯云上申请了,十分钟就完成了。 2. 上传证书 上传到一个文件夹里面 3. 配置nginx 网络上的资料都是直接修改 /etc/nginx/nginx.conf 这个文件。 不过我的服务器上这个文件里头没有 server 这个节点可以配置。 因此需要修改 /et
2025-10-27 · 系统配置 · 约 1 分钟
Ubuntu-18-04-修改登录界面背景图
前言 Ubuntu 18.04用了一段时间了,在Gnome桌面的加持下,兔子 18.04 的颜值还不错,加上自己搭配了几套GTK主题,简直美滋滋,唯一美中不足的就是,Ubuntu的登录管理器换成GDM之后,登录界面背景没办法修改了,这怎么行呢,于是经过一番折腾,有了本文。 首先,准备一张图片 图片的尺寸呢,根据你的屏幕分辨率确定咯。 然后把图片放到/usr/share/backgrounds/目录
2025-10-27 · 系统配置 · 约 1 分钟
Ubuntu-18-04-修复-Telegram-中文输入法
前言 Ubuntu 18.04,新的 Gnome 桌面的确好看很多。但同时出现了很多之前在 Unity 没有出现过的 BUG,例如在 Telegram 下无论怎么切换输入法都不能输入中文。 大概是所有 QT 编写的应用程序在 Gnome3 下都会出现这个问题,解决方法是引入 QT_IM_MODULE 变量。大致 步骤如下 编辑~/.local/share/applications/telegram
2025-10-27 · 系统配置 · 约 1 分钟
讨论
共 0 条加载评论中…