Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
TextServer¶
Inherits: RefCounted < Object
Inherited By: TextServerExtension
A server interface for font management and text rendering.
Description¶
TextServer is the API backend for managing fonts and rendering text.
Methods¶
create_font ( ) |
|
create_shaped_text ( Direction direction=0, Orientation orientation=0 ) |
|
void |
draw_hex_code_box ( RID canvas, int size, Vector2 pos, int index, Color color ) const |
void |
font_clear_glyphs ( RID font_rid, Vector2i size ) |
void |
font_clear_kerning_map ( RID font_rid, int size ) |
void |
font_clear_size_cache ( RID font_rid ) |
void |
font_clear_textures ( RID font_rid, Vector2i size ) |
void |
font_draw_glyph ( RID font_rid, RID canvas, int size, Vector2 pos, int index, Color color=Color(1, 1, 1, 1) ) const |
void |
font_draw_glyph_outline ( RID font_rid, RID canvas, int size, int outline_size, Vector2 pos, int index, Color color=Color(1, 1, 1, 1) ) const |
font_get_antialiasing ( RID font_rid ) const |
|
font_get_ascent ( RID font_rid, int size ) const |
|
font_get_char_from_glyph_index ( RID font_rid, int size, int glyph_index ) const |
|
font_get_descent ( RID font_rid, int size ) const |
|
font_get_embolden ( RID font_rid ) const |
|
font_get_face_count ( RID font_rid ) const |
|
font_get_face_index ( RID font_rid ) const |
|
font_get_fixed_size ( RID font_rid ) const |