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 an X11 program that allows you to set a font. It apparently accepts the 'standard' X Logical Font Description. This notation is fairly obscure, and while the document I linked to mentions it, it doesn't actually describe the syntax. Is there some kind of font picking tool that will provide a list of valid fonts, and allow me to picket a font from the list, and specify the sizes and such, then print out this notation?

X Logical Font Description X11 core font instances are usually specified using a notation known as the X Logical Font Description (XLFD). An XLFD starts with a dash `-', and consists of fourteen fields separated by dashes, for example:

-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1

share|improve this question
1  
The XLFD specification can be found at x.org/releases/current/doc along with a more up-to-date version of that old XFree86 doc you linked to. –  alanc May 5 '12 at 2:32

2 Answers 2

up vote 7 down vote accepted

xfontsel lets you browse through the available X11 fonts and provides rendered previews so you can see what they actually look like. It's fairly plain-looking and basic but it is provided with most Xorg installations by default.

share|improve this answer

Look at xlsfonts, it can be used in scripts because it produces plain text output.

share|improve this answer

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.