how to use huge fonts in X windows

for things like xmessage that don’t understand Nimbus Mono 48 Bold, it’s easier (yea, right) to use the old fashioned XFLD specification. something like the following…

  • first, get a list of installed mono bold fonts:

dox ~ $ xlsfonts | egrep 'mono.*bold.*0-0-0-0'
-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-1
-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-15
-urw-nimbus mono l-bold-o-normal--0-0-0-0-p-0-iso8859-2
-urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-1
-urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-15
-urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-2

the "-r-" =~ not italic or oblique, it’s what we want. for english, the safest encoding is iso8859-1, so that means we choose the font on line 4:

-urw-nimbus mono l-bold-r-normal--0-0-0-0-p-0-iso8859-1

to select a font point size, replace the second zero with the size times ten. for example, for a 96 point font, replace the second 0 with 960 and the font name becomes:

-urw-nimbus mono l-bold-r-normal--0-960-0-0-p-0-iso8859-1

to use that with xmessage, do:

xmessage  -fn '-urw-nimbus sans l-bold-r-normal--0-960-0-0-p-0-iso8859-1' 'Warning Will Robinson!!'