mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
[TextServer / Font] Add support for customizable baseline offset.
This commit is contained in:
@@ -120,6 +120,13 @@
|
||||
Returns the font ascent (number of pixels above the baseline).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_get_baseline_offset" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
Returns extra baseline offset (as a fraction of font height).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_get_char_from_glyph_index" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
@@ -640,6 +647,14 @@
|
||||
Sets the font ascent (number of pixels above the baseline).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_baseline_offset">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="baseline_offset" type="float" />
|
||||
<description>
|
||||
Sets extra baseline offset (as a fraction of font height).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_data">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
|
||||
Reference in New Issue
Block a user