LabelSize
HC
Graphics
Drawing Text
LabelSize
size LabelSize text
fontSize (LabelSize)
With one argument, this command will output the size of the given text. The input, which may be a word or a list is the same as what you would give to Label. You can use this information to build other forms of Label. Other forms might be CENTERLABEL or VERTICALLABEL. You can also use this information to "prepare" a site for text (i.e. frame it or set a background).
size:(List) List of 2 integers [width height] of the text in the current font.
text:(Thing) Any thing you wish to label with.
Example:
show labelsize "Hallo ;[44 24]
|
Without an argument, LabelSize outputs the current label font size.
Example:
show (LabelSize) ;[20 20]
|
References: