mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[Label] Add get_character_bounds method to get bounding rectangles of the characters.
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
<link title="2D Dodge The Creeps Demo">https://godotengine.org/asset-library/asset/515</link>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_character_bounds" qualifiers="const">
|
||||
<return type="Rect2" />
|
||||
<param index="0" name="pos" type="int" />
|
||||
<description>
|
||||
Returns the bounding rectangle of the character at position [param pos]. If the character is a non-visual character or [param pos] is outside the valid range, an empty [Rect2] is returned. If the character is a part of a composite grapheme, the bounding rectangle of the whole grapheme is returned.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_line_count" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user