Description: This function returns graphic-related information about a text, given a font.
Returns: Numeric
Usage: Script or Steady State
Format: TextAttribs(Text, Font, Option)
Parameters: Text { text } { required } { no default: }
Any text expression.
Font { Font } { required } { no default: }
Any font expression.
Option { numeric } { required } { no default: }
Any numeric expression for the desired parameter:
|
Option |
Parameter |
|
0 |
Width of text in user coordinates |
|
1 |
Height of text in user coordinates |
Example:
width = TextAttribs("Testing" { Text to display },
Font("ARIAL", 0, 16, 0, 5, 0, 0) { Font },
0 { Width in user coordinates });
The value of width will be 61, which is the width of the given text string in the given font.
See Also: