Skip to content

Commit

Permalink
Clarify the coordinate space for the bounding rectangle returned by L…
Browse files Browse the repository at this point in the history
…abel.get_character_bounds
  • Loading branch information
lpenguin committed Sep 12, 2024
1 parent 83d54ab commit b5ad14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/Label.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<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.
Returns the bounding rectangle of the character at position [param pos]. The bounding rectangle is interpreted in local 2D coordinates. 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">
Expand Down

0 comments on commit b5ad14e

Please sign in to comment.