Command: font

Syntax

font <name> {, <file/name> }

      or

font <name> = <ident>

Description

Create or redefine a font identifier.

Parameters

Switches

Notes

Scalable fonts are displayable at any angle or size. Fire software fonts, or system fonts declared with the -var switch (Microsoft Windows only), may be used as scalable fonts.
Fixed fonts are displayable only in a horizontal direction and have a fixed character height. System fonts declared without the -var switch are always fixed fonts, those declared with the -var switch may be used where a fixed font is required.

As a rule, graphic windows use scalable fonts to display text, and other window types use fixed fonts. However, there are graphic primitives (glabels) which may use scalable or fixed fonts.
Scalable fonts are anti-aliased when rendered, but fixed fonts are not.

Font identifiers can have global or application scope, but cannot have local scope. When local font identifiers are required, string identifiers should be used to reference the fonts by name.

Examples

Create a scalable font from a Fire software font file.

font gothic, $MXSYS/fonts/gothgbt.fnt

Create a scalable system font (on a Microsoft Windows system).

font fntArial12Bold,'Arial,12,Bold',-sys,-var

Create a fixed-size system font (on a Unix system).

font vtsingle, -sys

Take a copy of a font.

font mygoth = gothic

See Also

Commands:

glabel, gtext, textstyle, walpha

Structures:

font

Utilities:

genfont