FontOperationTextImageBounds |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | the image bounds of text <mText> with <mFont>
|
Associations | com.livecode.canvas |
Summary | Measure text precisely when drawn with a font.
|
Parameters | Name | Type | Description |
---|
mText | | An expression which evaluates to a string.
|
mFont | | An expression which evaluates to a font.
|
|
Example |
variable tFont as Font
put font "Arial" at size 18 into tFont
variable tBounds as Rectangle
put the image bounds of text "Sample text" with tFont into tBounds
|
Values | Name | Type | Description |
---|
return | | The bounding box of mText when drawn at point 0,0 with font mFont. Returns the bounds as a rectangle.
|
|
Description | The exact bounds of the text, which will fully enclose each character.
Note: This can be more time-consuming to compute than the layout bounds.
|
Tags | canvas |