DRAW Reference Manual
Miscellaneous Text Facilities
: Assign Fonts
Assign Fonts
The attributes FONT, DFON, and PFON identify the font to be used for displaying textual information in a drawing. They can be assigned the font number directly:
FONT 1
or
PFON 5
DFON 19
In the example, the FONT attribute is assigned a AVEVA font no. 1, whereas PFON and DFON identify TrueType fonts.
For TrueType fonts it is possible to preset the fonts as Bold and/or Italic. Therefore:
PFON 1005
Bold version of the TrueType font no. 5
PFON 2005
Italic version of the TrueType font no. 5
PFON 3005
Bold and Italic version of the TrueType font no. 5
Note that for AVEVA fonts the font itself determines its style (Bold or Italic).
For TrueType fonts it is also possible to specify the font by name:
FONT 'BOM font'
FONT 'BOM font Bold'
FONT 'BOM font Italic'
FONT 'BOM font Bold Italic'
The commands select the TrueType font, whose description is 'BOM font', either in its basic style, or with the Bold or Italic attributes correspondingly. Note that the words 'Bold' and 'Italic' are case sensitive.
FONT FACE 'Times New Roman'
FONT FACE 'Times New Roman Bold'
FONT FACE 'Times New Roman Italic'
FONT FACE 'Times New Roman Bold Italic'
The addition of the
FACE
keyword instructs the system to search for the font face name instead of its description. The new syntax is compatible with the querying syntax:
Q FONTNAME
Q PFONTNAME
Q DFONTNAME
which return the string containing the description of the font followed by the possible 'Bold' and 'Italic' style descriptions. Note that if the font description is empty, its face name is used instead.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.