Fedora 28 —— install fonts for WPS

# 第一步:从 Windows 7 系统下字体文件夹(C:\Windows\Fonts) ,拷贝如下文件到当前Ubuntu用户目录 ~/123

宋体:simsunb.ttf simsun.ttc
微软雅黑:msyh.ttf msyhbd.ttf
黑体:simhei.ttf
隶书:SIMLI.TTF
楷体:simkai
仿宋体:simfang
Courier New:courbd.ttf courbi.ttf couri.ttf cour.ttf
WPS Office 所需字体:symbol.ttf webdings.ttf wingding.ttf WINGDNG2.TTF WINGDNG3.TTF MTExtra.ttf

# word中字体前的字母T或O是什么意思
# T是 TTF(TrueTypeFont)是一种字库名称。TTF(TrueTypeFont)是Apple公司和Microsoft公司共同推出的字体文件格式,随着windows的流行,已经变成最常用的一种字体文件表示方式
# O是OpenType字体(.OTF) OpenType,是一种可缩放字型(scalable font)电脑字体类型,采用PostScript格式,是美国微软公司与Adobe公司联合开发,用来替代TrueType字型的新字型。这类字体的文件扩展名为.otf,类型代码是OTTO,现行标准为OpenType 1.4。


# 第二步:新建字体存放目录 windows-font
    
mkdir /usr/share/fonts/windows-font

# 第三步:拷贝字体到wiondow-font目录下 (使用下面的第三步)
    
cd /run/media/root/22C03855C0383181/Windows/Fonts
cd /opt/Windows_Fonts-xp/

mkdir /usr/share/fonts/windows-font

/bin/cp simhei.ttf /usr/share/fonts/windows-font
/bin/cp simsunb.ttf simsun.ttc /usr/share/fonts/windows-font
/bin/cp msyh.ttf msyhbd.ttf /usr/share/fonts/windows-font
/bin/cp MSYH.TTC MSYHBD.TTC /usr/share/fonts/windows-font
/bin/cp courbd.ttf courbi.ttf couri.ttf cour.ttf /usr/share/fonts/windows-font
/bin/cp symbol.ttf webdings.ttf wingding.ttf WINGDNG2.TTF WINGDNG3.TTF /usr/share/fonts/windows-font
/bin/cp Mt\ Extra\ Tiger.ttf /usr/share/fonts/windows-font
/bin/cp mtextra_01.ttf mtextra.ttf /usr/share/fonts/windows-font
/bin/cp Symbol\ Tiger* /usr/share/fonts/windows-font

[root@localhost Fonts]#

# 第三步:拷贝所有 Windows 字体到 wiondow-font 目录下 (use fonts of winxp and win10)
cp -r /run/media/root/22C03855C0383181/Windows/Fonts /opt/Windows_Fonts-xp
/bin/cp /opt/Windows_Fonts-xp/* /usr/share/fonts/windows-font

# cp /opt/Windows_Fonts-xp/ /usr/share/fonts/windows-font

/bin/cp /opt/Windows_Fonts-win10/* /usr/share/fonts/windows-font

# 第四步:修改权限,并更新字体缓存
    
chmod -R 777 /usr/share/fonts/windows-font
cd /usr/share/fonts/windows-font
mkfontscale
mkfontdir
fc-cache -fv
cd -

## 执行以下命令,生成字体的索引信息
# mkfontscale
# mkfontdir

## 运行fc-cache命令更新字体缓存
# fc-cache -fv


# 第五步:重启下系统
    
reboot

 

posted @ 2018-10-24 11:02  张同光  阅读(176)  评论(0编辑  收藏  举报