Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have seen lines like the one below, in a number of config files (xmobar has one of these and dmenu too has this)

'-*-fixed-*-*-*-*-18-*-*-*-*-*-*-*'
  1. What is the meaning of each token which is seperated by a hyphen ('-')?
  2. Where can I see a list of fonts which I can use in these configs?

There is another variation of this with obvious placeholders. Where can I see a list of fonts for this? (I understand that xft fonts are different)

xft:Bitstream Vera Sans Mono:size=10:antialias=true
share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

xfontsel will allow you to view, select and adjust all of these fields:

xfontsel in action...

You can also use the command xlsfonts to see a list of installed fonts. This will list all fonts, so you may want to pipe it through grep to view required subsets, eg,: xlsfonts | grep droid

Similarly, fc-list will display a list of all installed fonts.

You can read more about the differences between core and Xft fonts here: http://en.wikibooks.org/wiki/Guide_to_X11/Fonts#Core_versus_Xft_fonts

share|improve this answer
add comment

The former is a X logical font descriptor; the linked article describes each field. The xfontsel tool can help you create a XLFD interactively.

The latter is a Xft font name. While there are API calls for enumerating the various fonts, I don't know of any tool that exposes it since most have changed over to Fontconfig already.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.