diff options
Diffstat (limited to 'doc/classes/TextServer.xml')
-rw-r--r-- | doc/classes/TextServer.xml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 439514aa62..4f38785369 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -113,6 +113,15 @@ Returns the font ascent (number of pixels above the baseline). </description> </method> + <method name="font_get_char_from_glyph_index" qualifiers="const"> + <return type="int" /> + <param index="0" name="font_rid" type="RID" /> + <param index="1" name="size" type="int" /> + <param index="2" name="glyph_index" type="int" /> + <description> + Returns character code associated with [param glyph_index], or [code]0[/code] if [param glyph_index] is invalid. See [method font_get_glyph_index]. + </description> + </method> <method name="font_get_descent" qualifiers="const"> <return type="float" /> <param index="0" name="font_rid" type="RID" /> @@ -191,7 +200,7 @@ <param index="2" name="char" type="int" /> <param index="3" name="variation_selector" type="int" /> <description> - Returns the glyph index of a [param char], optionally modified by the [param variation_selector]. + Returns the glyph index of a [param char], optionally modified by the [param variation_selector]. See [method font_get_char_from_glyph_index]. </description> </method> <method name="font_get_glyph_list" qualifiers="const"> @@ -1154,7 +1163,7 @@ <param index="1" name="width" type="float" /> <param index="2" name="jst_flags" type="int" enum="TextServer.JustificationFlag" default="3" /> <description> - Adjusts text with to fit to specified width, returns new text width. + Adjusts text width to fit to specified width, returns new text width. </description> </method> <method name="shaped_text_get_ascent" qualifiers="const"> |