WXP
File Reference

Font List File (.fnl)

Since font names can be quite long, a font list file is provided to create font aliases. The default font list file is "wxp.fnl". This file is used for font aliases even if nothing is specified with the font_list resource.

FORMAT

The format of the font list file is:

alias font_name
alias font_name
...

Where:

EXAMPLES

Here is a sample font list file:

mod     modern.fnt
helv    #-adobe-helvetica-bold-r-normal-*-{16}-*-*-*-*-*-*-*
courier #-adobe-courier-bold-r-normal-*-{18}-*-*-*-*-*-*-*
btimes  #-adobe-times-bold-r-normal-*-12-*-*-*-*-*-*-*
times   #-adobe-times-medium-r-normal-*-12-*-*-*-*-*-*-*
school  #-adobe-new century schoolbook-bold-r-normal-*-12-*-*-*-*-*-*-*   
wtimes  #Times New Roman:14
warial  #Arial

The alias is listed first and the actual font name is listed next. If the font is preceded with a "#", it is a system font and not a WXP font. The first font listed is a WXP font. The next 5 are X11 fonts (Unix) and the last two are Windows fonts. If the fonts is scalable, the font size is surrounded by braces (e.g. {16}). This specifies the default size in points. If the scale factor is applied, the font will be scaled relative to this point size. System fonts are generally fixed and won't scale as the window is enlarged. System fonts are not printable. To specify a font, use the color resource: "-cot=white:fo=warial" or the plot parameter "-pa=font:helv". The default font list file is "wxp.fnl" which will be used if it exists. Otherwise, WXP will use the "modern.fnt" file or the fonts listed in the font_list resource. To specify a different font list file, use "-fl=fi:new_fonts.fnl".

SEE ALSO

Last updated May 10, 2020