Custom Fonts in Standalone Abstract Generator Interface
The following default fonts are used by Abstract Generator:
*Abstract*font: Helvetica -12
*Abstract*Text*font: Fixed -14
*Abstract*Entry*font: Fixed -13
*AbstractBubbleHelp*font: Helvetica -12
The sequence is significant. *Abstract*font is the most general rule, so it must be specified before the rules for text and entry widgets so that they can override the general value. If *Abstract*font is placed below either one of these, then it will override the values specified by the text and entry rules. The sequence has no effect on the bubble help rule because it uses a separate class, AbstractBubbleHelp, to store its resources.
To change all the fonts used in Abstract Generator, add the following line to your .Xdefaults file:
*Abstract*font: <font specifier>
If a font is incorrectly specified, Abstract Generator will not initialize correctly.
The two recommended ways of specifying fonts are described below.
-
Standard X Logical Font Descriptor (XLFD): This is used by all X applications and takes the following format:
-foundry-family-weight-slant-setwidth-addstyle-pixel-point-resx-resy-spacing-width-charset-encoding
For example,-*-Lucidatypewriter-Medium-R-*-*-*-120-*-*-*-*-iso8859-1
The individual options are each separated by a hyphen (-). An asterisk (*) indicates no value for that field.
You can obtain this string using thexfontselutility in a shell window. To usexfontsel, use the drop-down menus to select the font required, then click the select button to copy the specification to the clipboard. -
TCL font descriptors: The TCL font descriptor requires only the font family, size, and any modifiers (bold, italic, and so on).
For example,<font family> <size> [<descriptor>+]
The sequence is significant; the size must come before the descriptor list.
Possible descriptor values arenormal bold roman italic underline overstrike
These values have standard meanings and might not apply for all fonts. For example, fixed-width fonts might not often have an italic variants.
Examples,
To specify different fonts for different GUI widgets, add the following lines to your .Xdefaults file:
| Widget | Description |
|
For single-line entry boxes, typically used for entering numbers in the Bin Options form, use
See Setting Bin Options in Abstract Generator. |
|
|
For multiple-line text input boxes, used for almost all other textual input in Abstract Generator, use |
|
Return to top