When using \setmonofont with fontspec in XeTeX, I wonder what fonts (or type faces) I can use.
fc-list yields among others:
Terminus:style=Bold
Terminus:style=Regular
So I tried this:
\usepackage{fontspec}
\setmonofont[Mapping=tex-text]{Terminus}
[...]
\testtt{monospace text}
I get the error:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Terminus" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
Now, which fonts can I use?
Is there a way to list them, or something? Incidentally, is there a way how I could use Terminus in XeTeX for monospaced text?
fc-list, so fontconfig does see it. I'm using XeTeX, and the fact that I use tools such as fc-list, makes it somewhat clear, that I use Linux. For reference, the font is located in/usr/share/fonts/terminus, and is a gziped X11 bitmap format (.pcf.gz). – polemon Aug 15 '11 at 21:49fontspecis used for OpenType and TrueType fonts, so no, you can't use a bitmap version of Terminus with it. – Caramdir Aug 15 '11 at 21:55fc-list, but apparently that also prints legacy fonts. – Caramdir Aug 15 '11 at 21:59fc-list -f "%{family} (%{fontformat})\n" | sort --unique | grep --color=never TrueTypemight help. – Caramdir Aug 15 '11 at 22:03fc-list :fontformat=TrueType. – Caramdir Aug 15 '11 at 22:20fc-list :outline -f "%{family}\n"should avoid listing bitmap only fonts (but I don't have such fonts to test). – خالد حسني Aug 16 '11 at 01:47