This document covers the following topics:
Returns the size of a text if a certain font is chosen. You can use this action, for example, to find out the best font that still has an acceptable width and height.
Name/Data Type | Explanation |
---|---|
HANDLE OF FONT | Input
Specifies a Font Control. |
Text (A253) | Input
Your text. |
Width (I4) | Output
Width in pixels. |
Height (I4) | Output
Height in pixels. |
Response (I4) | Output
Natural error (if applicable). |
/*Check the size a font will require #TEXT := 'Check the size' PROCESS GUI ACTION TEXT-GET-EXTENT WITH FONT-HANDLE #TEXT #WIDTH #HEIGHT GIVING #RESPONSE