曦远 (DealiAxy)一份私人的文字刊物

StarBlog
返回文章列表折页手记阅读全文
系统配置

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

曦远 (DealiAxy)约 5 分钟
目录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 许可协议。转载请注明出处!

相关文章

关闭CentOS-6-防火墙,关闭Linux系统防火墙

前言 最近部署服务的时候需要临时关闭一下防火墙,所以记个笔记,如何关闭CentOS防火墙。 查看系统版本 输入:cat /etc/issue 查看版本 通过service关闭 service命令开启以及关闭防火墙为即时生效,下次重启机器的时候会自动复原。 查看防火墙状态: service iptables status 记得在CentOS6.9中是输入iptables,网上有些教程使用serv

2025-10-27 · 系统配置 · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…