[TextServer / Font] Add support for customizable baseline offset.
This commit is contained in:
parent
17e7f85c06
commit
85df221610
19 changed files with 242 additions and 24 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue