summaryrefslogtreecommitdiffstats
path: root/doc/classes/TextServer.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/TextServer.xml')
-rw-r--r--doc/classes/TextServer.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml
index 09f484f523..244ed08b9e 100644
--- a/doc/classes/TextServer.xml
+++ b/doc/classes/TextServer.xml
@@ -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" />
@@ -1744,6 +1759,7 @@
Vertical BGR subpixel layout.
</constant>
<constant name="FONT_LCD_SUBPIXEL_LAYOUT_MAX" value="5" enum="FontLCDSubpixelLayout">
+ Represents the size of the [enum FontLCDSubpixelLayout] enum.
</constant>
<constant name="DIRECTION_AUTO" value="0" enum="Direction">
Text direction is determined based on contents and current locale.
@@ -1867,6 +1883,7 @@
Determines whether the ellipsis at the end of the text is enforced and may not be hidden.
</constant>
<constant name="OVERRUN_JUSTIFICATION_AWARE" value="16" enum="TextOverrunFlag" is_bitfield="true">
+ Accounts for the text being justified before attempting to trim it (see [enum JustificationFlag]).
</constant>
<constant name="GRAPHEME_IS_VALID" value="1" enum="GraphemeFlag" is_bitfield="true">
Grapheme is supported by the font, and can be drawn.
@@ -2005,6 +2022,7 @@
Spacing at the bottom of the line.
</constant>
<constant name="SPACING_MAX" value="4" enum="SpacingType">
+ Represents the size of the [enum SpacingType] enum.
</constant>
<constant name="FONT_BOLD" value="1" enum="FontStyle" is_bitfield="true">
Font is bold.