linux 下如何查看系统的字体信息
linux下查看字体信息,最常用的命令有两个 fc-list 和 fc-match ,前者用来显示系统安装的字体,后者用来显示特定的字体的详细信息。
fc-list 查看系统字体
fc-list :lang=zh
/usr/share/fonts/myfonts/文泉驿正黑.ttf: WenQuanYi Zen Hei,文泉驛正黑,文泉驿正黑:style=Medium,中等
/usr/share/fonts/myfonts/华文琥珀.ttf: STHupo,华文琥珀:style=Regular
/usr/share/fonts/myfonts/米芾体.ttf: 书体坊米芾体:style=Regular
/usr/share/fonts/myfonts/思源黑体细.otf: Noto Sans S Chinese,Noto Sans S Chinese Light:style=Light,Regular
/usr/share/fonts/myfonts/文泉驿等宽微米黑.ttf: WenQuanYi Micro Hei Mono,文泉驛等寬微米黑,文泉驿等宽微米黑:style=Regular
/usr/share/fonts/myfonts/华文行楷.TTF: STXingkai,华文行楷:style=Regular
/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf: Droid Sans Fallback:style=Regular
/usr/share/fonts/myfonts/站酷高端黑.ttf: huxiaobo\-gdh,站酷高端黑:style=Regular
fc-match 查看字体的详情
fc-match -v 文泉驿正黑 | head -20
Pattern has 37 elts (size 48)
family: "WenQuanYi Zen Hei"(s) "文泉驛正黑"(s) "文泉驿正黑"(s)
familylang: "en"(s) "zh-tw"(s) "zh-cn"(s)
style: "Medium"(s) "中等"(s)
stylelang: "en"(s) "zh-tw"(s)
fullname: "WenQuanYi Zen Hei"(s) "文泉驛正黑"(s) "文泉驿正黑"(s)
fullnamelang: "en"(s) "zh-tw"(s) "zh-cn"(s)
slant: 0(i)(s)
weight: 100(f)(s)
width: 100(f)(s)