日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

CentOS 安装宋体字体

發布時間:2024/9/19 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CentOS 安装宋体字体 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

目錄

  • 前言
  • 字體文件
  • 安裝宋體字體
  • 參考

前言

  • CentOS Linux release 7.6.1810 (Core)
  • win10

字體文件

使用windows操作系統上的字體文件即可。

win10系統中,字體文件位置:C:\WINDOWS\FONTS。

將宋體字體文件拷貝出來(比如,放到桌面),改字體文件名為:simsun.ttc。

安裝宋體字體

  • 查看系統中包含哪些字體。
  • shell> fc-list /usr/share/fonts/abattis-cantarell/Cantarell-Bold.otf: Cantarell:style=Bold /usr/share/fonts/abattis-cantarell/Cantarell-Regular.otf: Cantarell:style=Regular /usr/share/fonts/abattis-cantarell/Cantarell-Oblique.otf: Cantarell:style=Oblique /usr/share/fonts/abattis-cantarell/Cantarell-BoldOblique.otf: Cantarell:style=BoldOblique

    shell> fc-list :lang=zh

    嗯,沒有宋體字體。
    2. 將字體文件(simsun.ttc)上傳到目錄/usr/share/fonts/chinese(如果目錄不存在則創建目錄)下。
    3. 修改字體文件的權限。

    shell> cd /usr/share/fonts/chinese shell> chmod 755 simsun.ttc
  • 安裝ttmkfdir(如已安裝,跳過)
  • shell> yum -y install ttmkfdir
  • 搜索目錄中所有的字體信息,匯總生成fonts.scale文件
  • shell> ttmkfdir /usr/share/fonts/chinese
  • 刷新內存中的字體緩存。
  • shell> fc-cache
  • 再次查看系統中包含哪些字體。
  • shell> fc-list /usr/share/fonts/chinese/simsun.ttc: SimSun,宋體:style=Regular,常規 /usr/share/fonts/abattis-cantarell/Cantarell-Bold.otf: Cantarell:style=Bold /usr/share/fonts/chinese/simsun.ttc: NSimSun,新宋體:style=Regular,常規 /usr/share/fonts/abattis-cantarell/Cantarell-Regular.otf: Cantarell:style=Regular /usr/share/fonts/abattis-cantarell/Cantarell-Oblique.otf: Cantarell:style=Oblique /usr/share/fonts/abattis-cantarell/Cantarell-BoldOblique.otf: Cantarell:style=BoldOblique

    shell> fc-list :lang=zh /usr/share/fonts/chinese/simsun.ttc: SimSun,宋體:style=Regular,常規 /usr/share/fonts/chinese/simsun.ttc: NSimSun,新宋體:style=Regular,常規

    參考

    https://blog.csdn.net/wlwlwlwl015/article/details/51482065

    總結

    以上是生活随笔為你收集整理的CentOS 安装宋体字体的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。