From d0fa29945a74035c4de7d21bf21eaaaf0f25379e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 10 Mar 2012 09:36:33 -0500 Subject: [PATCH] Add more details about `fc-list` usage to the font post. --- posts/Fonts.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/posts/Fonts.mdwn b/posts/Fonts.mdwn index 7fcc914..d24ece2 100644 --- a/posts/Fonts.mdwn +++ b/posts/Fonts.mdwn @@ -14,6 +14,22 @@ up by X. You can use `fc-list` to list fonts that X can find. Shalom:style=Stick … +For more details on a font, you can set the [format][]: + + $ fc-list -f '%{family}\t%{file}\n' + Ann /usr/share/fonts/freefonts/ans.pfb + Goudy-Old-Style /usr/share/fonts/freefonts/goudyob.pfb + Nimbus Roman No9 L /usr/share/fonts/urw-fonts/n021003l.pfb + … + +Or just use `--verbose`: + + $ fc-list -v + Pattern has 15 elts (size 16) + family: "Ann"(s) + style: "Stone"(s) + … + You can use `xset` to query the font path for your current X server. $ xset q @@ -58,6 +74,7 @@ page. Kevin Bowling also has some interesting notes about [fontconfig]: http://fontconfig.org/ +[format]: http://freedesktop.org/software/fontconfig/fontconfig-devel/fcpatternformat.html [gucharmap]: http://live.gnome.org/Gucharmap [OFL]: http://openfontlibrary.org/ [TrueType]: http://en.wikipedia.org/wiki/TrueType -- 2.26.2