Main Page | 最近更改 | 編輯本頁 | 頁面歷史

可列印版 | 免責聲明 | 隱私政策

未登入
登入 | 幫助
 

InstallFontsByHand

出自DebianWiki

目錄

[編輯] 所需套件

[編輯] 前言

所有的 Debian GNU/Linux 所提供的字型,只要使用 apt-get 指令就可以裝好了,什麼設定都不用去理它... 但是我們也可能會想自行安裝一些字型呀!那該怎麼做?

由於大多的應用程式使用 Defoma 和 FontConfig 來管理字型,所以字型新增的方式也因而分成兩個步驟:

[編輯] Defoma(用於 XTT、Truetype、PS 字型。)

defoma-hints --no-question truetype /usr/share/fonts/truetype/hanwang/wt024.ttf > /etc/defoma/hints/ttf-HanWang-FangSong.hints
category truetype
begin /usr/share/fonts/truetype/hangwang/wt024.ttf
  Family = HanWangFangSongMedium
  FontName = HanWangFangSongMedium-Regular
  Encoding = Unicode
  Location = English Chinese-Taiwan
  Charset = ISO10646-1 BIG5 CNS11643-1 CNS11643-2 CNS11643-3 CNS11643-4 CNS11643-5 CNS11643-6 CNS11643-7 ISO8859-1
  UniCharset = BIG5 ISO8859-1
  GeneralFamily = Roman
  Weight = Medium
  Width = Variable
  Shape = Normal Upright
  Foundry = HanWang
  Priority = 20
  TTCap = halfwidth-bw=0.5 italic-angle=0.167 no-roblique no-oblique no-ritalic
end

PS. 新的 defoma 安裝新字型後可以給 FontConfig 使用

[編輯] FontConfig(用於 libXft 的字型)

在自行安裝了字型之後,可以藉由修改 /etc/fonts/fonts.conf 來修改字型的順序。
Gtk2+ 是修改 Sans-serif faces 區段,而 QT 則是修改 Serif faces 區段。

其實以上的動作也沒有比 MS Windows 新增字型的動作困難多少。

取自"http://wiki.debian.org.tw/index.php/InstallFontsByHand"

本頁面已經被瀏覽9,946次。 這頁的最後修訂在 2004年9月20日 (星期一) 17:48。 本站的全部文本內容在GNU Free Documentation License 1.2之條款下提供。


[Main Page]
Main Page
社區
近期活動
最近更改
隨機頁面
幫助
贊助

編輯本頁
討論本頁
頁面歷史
鏈入頁面
鏈出更改

特殊頁面
錯誤報告