查看所有字体:
fc-list
查看中文字体
fc-list :lang=zh
用fc-list找出语言为zh的字体文件,可见系统里中文字体少的可怜。知道了这些字体,还需要进一步了解这些字体对应的文件,可以运行fc-match程序得到,
fc-match -v "AR PL UKai CN"
Pattern has 32 elts (size 48)
family: "AR PL UKai CN"(s)
familylang: "en"(s)
style: "Book"(s)
stylelang: "en"(s)
fullname: "AR PL UKai CN"(s)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(i)(s)
width: 100(i)(s)
size: 12(f)(s)
pixelsize: 12.5(f)(s)
spacing: 90(i)(w)
foundry: "unknown"(s)
hintstyle: 3(i)(s)
hinting: FcTrue(s)
verticallayout: FcFalse(s)
autohint: FcFalse(s)
globaladvance: FcFalse(w)
file: "/usr/share/fonts/cjkunifonts-ukai/ukai.ttc"(s)
index: 0(i)(s)
outline: FcTrue(s)
scalable: FcTrue(s)
dpi: 75(f)(s)
scale: 1(f)(s)
minspace: FcFalse(w)
charset: 0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
0001: ffffffff ffffffff ffffffff ffffffff 00800000 00018003 fffffff0 ff3f3fcf
0002: cfffffff 008fffc0 08130010 00200502 00000608 30000000 2f002fc0 00000c00
02f8: 00000000 08000020 00000001 01000000 00100000 00000040 00002000 00000000
02f9: 00000000 00000000 00000000 00000000 00100000 10040000 00100000 00000000
(s)
lang: aa|af|ast|ay|bg|bi|bin|br|bs|ca|ch|co|cs|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|ga|gd|gl|gn|gv|ho|hr|hu|ia|ibo|id|ie|io|is|it|ki|kl|kum|kw|la|lb|lt|lv|mg|mh|mi|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|se|sel|shs|sk|sl|sma|smj|smn|so|sq|ss|st|sv|sw|tn|tr|ts|ven|vi|vo|vot|wa|wen|wo|xh|yap|yo|zh-cn|zh-sg|zh-tw|zu(s)
fontversion: 13107(i)(s)
capability: "otlayout:DFLT otlayout:bopo otlayout:cyrl otlayout:grek otlayout:hani otlayout:kana otlayout:latn"(s)
fontformat: "TrueType"(s)
embeddedbitmap: FcTrue(s)
decorative: FcFalse(s)
这里只查阅了字体“AR PL UKai CN”,可以看到其对应文件"/usr/share/fonts/cjkunifonts-ukai/ukai.ttc",其他的字体信息也可以通过该方法查得。