Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

TextServerExtension

Inherits: TextServer < RefCounted < Object

Inherited By: TextServerAdvanced, TextServerDummy, TextServerFallback

Base class for custom TextServer implementations (plugins).

Description

External TextServer implementations should inherit from this class.

Methods

void

_cleanup ( ) virtual

RID

_create_font ( ) virtual

RID

_create_font_linked_variation ( RID font_rid ) virtual

RID

_create_shaped_text ( Direction direction, Orientation orientation ) virtual

void

_draw_hex_code_box ( RID canvas, int size, Vector2 pos, int index, Color color ) virtual const

void

_font_clear_glyphs ( RID font_rid, Vector2i size ) virtual

void

_font_clear_kerning_map ( RID font_rid, int size ) virtual

void

_font_clear_size_cache ( RID font_rid ) virtual

void

_font_clear_textures ( RID font_rid, Vector2i size ) virtual

void

_font_draw_glyph ( RID font_rid, RID canvas, int size, Vector2 pos, int index, Color color ) virtual const

void

_font_draw_glyph_outline ( RID font_rid, RID canvas, int size, int outline_size, Vector2 pos, int index, Color color ) virtual const

FontAntialiasing

_font_get_antialiasing ( RID font_rid ) virtual const

float

_font_get_ascent ( RID font_rid, int size ) virtual const

int

_font_get_char_from_glyph_index ( RID font_rid, int size, int glyph_index ) virtual const

float

_font_get_descent ( RID font_rid, int size ) virtual const

float

_font_get_embolden ( RID font_rid ) virtual const

int

_font_get_face_count ( RID font_rid ) virtual const

int

_font_get_face_index ( RID font_rid ) virtual const

int

_font_get_fixed_size ( RID font_rid ) virtual const

FixedSizeScaleMode

_font_get_fixed_size_scale_mode ( RID font_rid ) virtual const

bool

_font_get_generate_mipmaps ( RID font_rid ) virtual const

float

_font_get_global_oversampling ( ) virtual const

Vector2

_font_get_glyph_advance ( RID font_rid, int size, int glyph ) virtual const

Dictionary

_font_get_glyph_contours ( RID font_rid, int size, int index ) virtual const

int

_font_get_glyph_index ( RID font_rid, int size, int char, int variation_selector ) virtual const

PackedInt32Array

_font_get_glyph_list ( RID font_rid, Vector2i size ) virtual const

Vector2

_font_get_glyph_offset ( RID font_rid, Vector2i size, int glyph ) virtual const

Vector2

_font_get_glyph_size ( RID font_rid, Vector2i size, int glyph ) virtual const

int

_font_get_glyph_texture_idx ( RID font_rid, Vector2i size, int glyph ) virtual const

RID

_font_get_glyph_texture_rid ( RID font_rid, Vector2i size, int glyph ) virtual const

Vector2

_font_get_glyph_texture_size ( RID font_rid, Vector2i size, int glyph ) virtual const

Rect2

_font_get_glyph_uv_rect ( RID font_rid, Vector2i size, int glyph ) virtual const

Hinting

_font_get_hinting ( RID font_rid ) virtual const

Vector2

_font_get_kerning ( RID font_rid, int size, Vector2i glyph_pair ) virtual const

Vector2i[]

_font_get_kerning_list ( RID font_rid, int size ) virtual const

bool

_font_get_language_support_override ( RID font_rid, String language ) virtual

PackedStringArray

_font_get_language_support_overrides ( RID font_rid ) virtual

int

_font_get_msdf_pixel_range ( RID font_rid ) virtual const

int

_font_get_msdf_size ( RID font_rid ) virtual const

String

_font_get_name ( RID font_rid ) virtual const

Dictionary

_font_get_opentype_feature_overrides ( RID font_rid ) virtual const

Dictionary

_font_get_ot_name_strings ( RID font_rid ) virtual const

float

_font_get_oversampling ( RID font_rid ) virtual const

float

_font_get_scale ( RID font_rid, int size ) virtual const

bool

_font_get_script_support_override ( RID font_rid, String script ) virtual

PackedStringArray

_font_get_script_support_overrides ( RID font_rid ) virtual

Vector2i[]

_font_get_size_cache_list ( RID font_rid ) virtual const

int

_font_get_spacing ( RID font_rid, SpacingType spacing ) virtual const

int

_font_get_stretch ( RID font_rid ) virtual const

BitField<FontStyle>

_font_get_style ( RID font_rid ) virtual const

String

_font_get_style_name ( RID font_rid ) virtual const

SubpixelPositioning

_font_get_subpixel_positioning ( RID font_rid ) virtual const

String

_font_get_supported_chars ( RID font_rid ) virtual const

int

_font_get_texture_count ( RID font_rid, Vector2i size ) virtual const

Image

_font_get_texture_image ( RID font_rid, Vector2i size, int texture_index ) virtual const

PackedInt32Array

_font_get_texture_offsets ( RID font_rid, Vector2i size,