Ubuntu下缺少文字字体的解决方案

wps-office下原有的字体

youraccount@albert:/usr/share/fonts/wps-office$ ls
DejaVuMathTeXGyre.ttf MTEXTRA.TTF

youraccount@albert:/usr/share/fonts/wps-office$ cp -r /media/youraccount/Windows/Windows/Fonts/*.ttf /media/youraccount/softs/softs/Office_WPS_YZOffice/win_font
youraccount@albert:/usr/share/fonts/wps-office$ cp -r /media/youraccount/Windows/Windows/Fonts/*.TTF /media/youraccount/softs/softs/Office_WPS_YZOffice/win_font
youraccount@albert:/usr/share/fonts/wps-office$ cp /media/youraccount/Windows/Windows/Fonts/simsun.ttc /media/youraccount/softs/softs/Office_WPS_YZOffice/win_font


youraccount@albert:/media/youraccount/softs/softs/Office_WPS_YZOffice/win_font$ cp arial.ttf arialbi.ttf arialbd.ttf calibri.ttf ariali.ttf simsunb.ttf msyi.ttf courbd.ttf courbi.ttf couri.ttf cour.ttf wingding.ttf webdings.ttf symbol.ttf WINGDNG3.TTF WINGDNG2.TTF MTEXTRA.TTF need_ttf/
youraccount@albert:/media/youraccount/softs/softs/Office_WPS_YZOffice/win_font$ cp simhei.ttf simsun.ttc simfang.ttf need_ttf/

youraccount@albert:/usr/share/fonts$ sudo cp -r /media/youraccount/softs/softs/Office_WPS_YZOffice/win_font/need_ttf/* ./
youraccount@albert:/usr/share/fonts/wps-office$ sudo cp -r /media/youraccount/softs/softs/Office_WPS_YZOffice/other_font/* ./

拷贝来的字体(下载MSYH.TTF、仿宋_GB2312.ttf)

youraccount@albert:/usr/share/fonts/wps-office$ ls
arialbd.ttf  ARIALNBI.TTF  ARIALN.TTF    ARLRDBD.TTF  courbi.ttf  DejaVuMathTeXGyre.ttf    MSYH.TTF     MTEXTRA.TTF  simsunb.ttf  timesbd.ttf  times.ttf     WINGDNG2.TTF
arialbi.ttf  ARIALNB.TTF   arial.ttf     calibri.ttf  couri.ttf   DejaVuSansMono-Bold.ttf  msyi.ttf     simfang.ttf  simsun.ttc   timesbi.ttf  webdings.ttf  WINGDNG3.TTF
ariali.ttf   ARIALNI.TTF   ARIALUNI.TTF  courbd.ttf   cour.ttf    DejaVuSansMono.ttf       mtextra.ttf  simhei.ttf   symbol.ttf   timesi.ttf   wingding.ttf  仿宋_GB2312.ttf

刷新一下字体库

youraccount@albert:/usr/share/fonts/wps-office$ sudo fc-cache -fv

你可能感兴趣的:(Ubuntu下缺少文字字体的解决方案)