Resource: font_list
Resource | font_list |
---|---|
Overview | Specifies a list of fonts to use in the plots. |
Command Line | -fl=font_file[,font_file...] |
Environment Variable | wxpfontlist |
Possible Values | |
Default Value | modern.fnt |
This resource is used to specify the fonts used in WXP programs. The default font is modern.fnt but more than one font can be used in a program. The font files are specified in order and are numbered starting at 1 and goes to the number of fonts listed.
Font List File
Since font names can be quite long, a font list file is provided to create font aliases. This works much the same as listing the files with the font_list resource but that aliases for each font are also listed. Here is a sample font list file:
mod modern.fnt helv #-adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-* courier #-adobe-courier-bold-r-normal-*-12-*-*-*-*-*-*-* 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. 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 "-pp=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".
Specifying a Font
The default font number is 1 or the first listed font in the font list. To change a font, you need to specify its font number as a part of the attributes on each color resource (fo=#) or the font alias listed in the font list file (fo=font).
-cod=green:fo=mod
which will use the modern font specified in the font list file.
Here is a list of possible fonts provided with WXP:
Database | Type | Style |
modern.fnt | Modern | Normal |
modern_bold.fnt | Modern | Bold |
modern_ital.fnt | Modern | Italics |
roman.fnt | Roman | Normal |
roman_bold.fnt | Roman | Bold |
roman_ital.fnt | Roman | Italics |
gothic.fnt | Gothic | |
greek.fnt | Greek letters |
For system fonts, check those available on the system you are using.
Last updated July 30, 1998