前文提到博主為自己的 ThinkPad E450
安裝了一款來自愛爾蘭的 Linux/GNU 發(fā)行版
作為主力系統(tǒng)使用:這款來自愛爾蘭的操作系統(tǒng)真的是愛了拔恰。近期需要進行文字處理工作,安裝了WPS 2019 Linux 版
,但是發(fā)現(xiàn)這款外來的 Linux/GNU 發(fā)行版
并沒有自帶一些常用的中文字體昂灵,如 宋體敢靡、仿宋畸冲、黑體 等字體财异,經(jīng)過一番檢索,博主使用從 Windows 10 家庭中文版中提取出中文字體導(dǎo)入癌蚁,并在系統(tǒng)中刷新字體以使字體生效幻梯。下面就來講講詳細步驟:
字體資源準備
方案一:字體可以自行從windows系統(tǒng)下進入
C:\windows\Fonts
文件夾兜畸,挑選常用的中文字體拷貝到U盤。方案二:為方便需要的人碘梢,博主已從
windows
系統(tǒng)中提取了常用中文字體并打包咬摇,放進博主的資源站(https://res.frytea.com/)開放下載,需要的伙伴可以從下列地址進入下載(若地址實效請自行進入資源站尋找或聯(lián)系博主):資源來源詳情:
系統(tǒng)版本:Windows 10 家庭中文版
系統(tǒng)版本號:1903
系統(tǒng)安裝日期:2019/10/29
操作系統(tǒng)版本:18362.535
路徑:C://windows/fonts
中文:C://windows/fonts/中文簡體部分
若從本站資源站下載請在下載完成后進入下載目錄煞躬,執(zhí)行下列命令:
$ unzip win_cn_fonts.zip
命令行操作
1菲嘴、 移動字體庫到linux系統(tǒng)下的字體庫文件夾/usr/share/fonts/下:
$ sudo mv win_cn_fonts/ /usr/share/fonts/win_font/
2、讓linux系統(tǒng)識別新的中文字體:
$ sudo fc-cache -fv
3汰翠、如需確認新的中文字體庫是否已經(jīng)安裝,可在終端中輸入:
$ fc-list :lang=zh-cn | sort
...
/usr/share/fonts/win_font/Dengb.ttf: 等線,DengXian:style=Bold
/usr/share/fonts/win_font/Dengl.ttf: 等線,DengXian,DengXian Light,等線 Light:style=Light,Regular
/usr/share/fonts/win_font/Deng.ttf: 等線,DengXian:style=Regular
/usr/share/fonts/win_font/FZLTCXHJW.ttf: 方正蘭亭超細黑簡體,FZLanTingHeiS\-UL\-GB:style=Regular
/usr/share/fonts/win_font/FZSTK.TTF: 方正舒體,FZShuTi:style=Regular
/usr/share/fonts/win_font/FZYTK.TTF: 方正姚體,FZYaoTi:style=Regular
/usr/share/fonts/win_font/msyhbd.ttc: 微軟雅黑,Microsoft YaHei:style=Bold,Negreta,tu?né,fed,Fett,?ντονα,Negrita,Lihavoitu,Gras,Félk?vér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kal?n,Krepko,Lodia
/usr/share/fonts/win_font/msyhbd.ttc: Microsoft YaHei UI:style=Bold,Negreta,tu?né,fed,Fett,?ντονα,Negrita,Lihavoitu,Gras,Félk?vér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kal?n,Krepko,Lodia
/usr/share/fonts/win_font/msyhl.ttc: 微軟雅黑,Microsoft YaHei,Microsoft YaHei Light,微軟雅黑 Light:style=Light,Regular
/usr/share/fonts/win_font/msyhl.ttc: Microsoft YaHei UI,Microsoft YaHei UI Light:style=Light,Regular
/usr/share/fonts/win_font/msyh.ttc: 微軟雅黑,Microsoft YaHei:style=Regular,Normal,oby?ejné,Standard,Κανονικ?,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/win_font/msyh.ttc: Microsoft YaHei UI:style=Regular,Normal,oby?ejné,Standard,Κανονικ?,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/win_font/simfang.ttf: 仿宋,FangSong:style=Regular,Normal,oby?ejné,Standard,Κανονικ?,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/win_font/simhei.ttf: 黑體,SimHei:style=Regular,Normal,oby?ejné,Standard,Κανονικ?,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/win_font/simkai.ttf: 楷體,KaiTi:style=Regular,Normal,oby?ejné,Standard,Κανονικ?,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/share/fonts/win_font/SIMLI.TTF: 隸書,LiSu:style=Regular
/usr/share/fonts/win_font/simsun (2).ttc: 宋體,SimSun:style=常規(guī),Regular
/usr/share/fonts/win_font/simsun (2).ttc: 新宋體,NSimSun:style=常規(guī),Regular
/usr/share/fonts/win_font/simsun.ttc: 宋體,SimSun:style=常規(guī),Regular
/usr/share/fonts/win_font/simsun.ttc: 新宋體,NSimSun:style=常規(guī),Regular
/usr/share/fonts/win_font/SIMYOU.TTF: 幼圓,YouYuan:style=Regular
/usr/share/fonts/win_font/STCAIYUN.TTF: 華文彩云,STCaiyun:style=Regular
/usr/share/fonts/win_font/STFANGSO.TTF: 華文仿宋,STFangsong:style=Regular
/usr/share/fonts/win_font/STHUPO.TTF: 華文琥珀,STHupo:style=Regular
/usr/share/fonts/win_font/STKAITI.TTF: 華文楷體,STKaiti:style=Regular
/usr/share/fonts/win_font/STLITI.TTF: 華文隸書,STLiti:style=Regular
/usr/share/fonts/win_font/STSONG.TTF: 華文宋體,STSong:style=Regular
/usr/share/fonts/win_font/STXIHEI.TTF: 華文細黑,STXihei:style=Regular
/usr/share/fonts/win_font/STXINGKA.TTF: 華文行楷,STXingkai:style=Regular
/usr/share/fonts/win_font/STXINWEI.TTF: 華文新魏,STXinwei:style=Regular
/usr/share/fonts/win_font/STZHONGS.TTF: 華文中宋,STZhongsong:style=Regular
4昭雌、enjoy it.