DRAW Reference Manual
Labels
:
Create and Manipulate Labels
: Label Text Manipulation
Label Text Manipulation
Character height and spacing, and line spacing are all definable, as is the text justification.
The set of attributes that control the appearance of a Label text is:
CHEI
character height (default 4 mm)
LHEI
letter height (0.8* character height)
CSPA
character spacing factor (default 0)
LSPA
text line spacing factor (default 0)
Initial (default) values of all these attributes are cascaded to GLABs from their owning LAYE. All the attributes are set directly, for example:
CHEI 6
(LHEI automatically set to 4.8)
CSPA 1
LSPA 1
The character height and letter height attributes are described. Refer to
Miscellaneous Text Facilities
for further information.
CSPA and LSPA can be given negative values. For CSPA, small negative values (of the order of -.1) causes text to become compressed (values much smaller than this are not useful). For LSPA, values of the order -.1 compresses lines; values of the order -3 reverses the order of lines. (Limits are -10 to +10 for LSPA, -0.5 to +10 for CSPA.)
The example illustrates the effects of varying the character spacing and line spacing.
Text justification and vertical alignment are controlled by the settings of the JUST and ALIG attributes, which can have alternative settings:
JUST L
Text left justified (default)
JUST C
Text centre justified
JUST R
Text right justified right
ALIG BB
Text aligned with bottom of body (default)
ALIG HB
Text aligned halfway up body
ALIG TB
Text aligned with top of body
ALIG BASE
Text aligned with base of first character (on first line of text)
The horizontal justification is relative to the Label origin, vertical alignment is relative to the text body - the area occupied by the text. The text base ignores text descenders (for example, the tail of a āpā or a āyā).
The example illustrates the effect of varying these attributes.
indicates the text string origins for BBODY and BASE alignments. For a multi-line text string, the origin is at the baseline of the first line of text.
The Label FONT attribute controls the Label text font. Refer to
Miscellaneous Text Facilities
for further information.
The TXCOLOUR attribute controls the text colour. Refer to
Colours and Styles
for further information.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.