Use extra font spacing in the RichTextLabel line height calculation, and stylebox size in the minimum size calculation.

This commit is contained in:
bruvzg
2021-03-29 17:26:53 +03:00
parent b253aca53f
commit 9f4893c70b
4 changed files with 37 additions and 7 deletions

View File

@@ -289,6 +289,20 @@
Returns the size of the bounding box of the paragraph.
</description>
</method>
<method name="get_spacing_bottom" qualifiers="const">
<return type="int">
</return>
<description>
Returns extra spacing at the bottom of the line. See [member Font.extra_spacing_bottom].
</description>
</method>
<method name="get_spacing_top" qualifiers="const">
<return type="int">
</return>
<description>
Returns extra spacing at the top of the line. See [member Font.extra_spacing_top].
</description>
</method>
<method name="hit_test" qualifiers="const">
<return type="int">
</return>