TextServerExtension

Inherits: TextServer < RefCounted < Object

Inherited By: TextServerAdvanced, TextServerDummy, TextServerFallback

Base class for TextServer custom implementations (plugins).

Description

External TextServer implementations should inherit from this class.

Methods

RID

create_font ( ) 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

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

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

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

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, int texture_index ) virtual const

Transform2D

font_get_transform ( RID font_rid ) virtual const

float

font_get_underline_position ( RID font_rid, int size ) virtual const

float

font_get_underline_thickness ( RID font_rid, int size ) virtual const

Dictionary

font_get_variation_coordinates ( RID font_rid ) virtual const

bool

font_has_char ( RID font_rid, int char ) virtual const

bool

font_is_force_autohinter ( RID font_rid ) virtual const

bool

font_is_language_supported ( RID font_rid, String language ) virtual const

bool

font_is_multichannel_signed_distance_field ( RID font_rid ) virtual const

bool

font_is_script_supported ( RID font_rid, String script ) virtual const

void

font_remove_glyph ( RID font_rid, Vector2i size, int glyph ) virtual

void

font_remove_kerning ( RID font_rid, int size, Vector2i glyph_pair ) virtual

void

font_remove_language_support_override ( RID font_rid, String language ) virtual

void

font_remove_script_support_override ( RID font_rid, String script ) virtual

void

font_remove_size_cache ( RID font_rid, Vector2i size ) virtual

void

font_remove_texture ( RID font_rid, Vector2i size, int texture_index ) virtual

void

font_render_glyph ( RID font_rid, Vector2i size, int index ) virtual

void

font_render_range ( RID font_rid, Vector2i size, int start, int end ) virtual

void

font_set_antialiasing ( RID font_rid, FontAntialiasing antialiasing ) virtual

void

font_set_ascent ( RID font_rid, int size, float ascent ) virtual

void

font_set_data ( RID font_rid, PackedByteArray data ) virtual

void

font_set_data_ptr ( RID font_rid, const uint8_t* data_ptr, int data_size ) virtual

void

font_set_descent ( RID font_rid, int size, float descent ) virtual

void

font_set_embolden ( RID font_rid, float strength ) virtual

void

font_set_face_index ( RID font_rid, int face_index ) virtual

void

font_set_fixed_size ( RID font_rid, int fixed_size ) virtual

void

font_set_force_autohinter ( RID font_rid, bool force_autohinter ) virtual

void

font_set_generate_mipmaps ( RID font_rid, bool generate_mipmaps ) virtual

void

font_set_global_oversampling ( float oversampling ) virtual

void

font_set_glyph_advance ( RID font_rid, int size, int glyph, Vector2 advance ) virtual

void

font_set_glyph_offset ( RID font_rid, Vector2i size, int glyph, Vector2 offset ) virtual

void

font_set_glyph_size ( RID font_rid, Vector2i size, int glyph, Vector2 gl_size ) virtual

void

font_set_glyph_texture_idx ( RID font_rid, Vector2i size, int glyph, int texture_idx ) virtual

void

font_set_glyph_uv_rect ( RID font_rid, Vector2i size, int glyph, Rect2 uv_rect ) virtual

void

font_set_hinting ( RID font_rid, Hinting hinting ) virtual

void

font_set_kerning ( RID font_rid, int size, Vector2i glyph_pair, Vector2 kerning ) virtual

void

font_set_language_support_override ( RID font_rid, String language, bool supported ) virtual

void

font_set_msdf_pixel_range ( RID font_rid, int msdf_pixel_range ) virtual

void

font_set_msdf_size ( RID font_rid, int msdf_size ) virtual

void

font_set_multichannel_signed_distance_field ( RID font_rid, bool msdf ) virtual

void

font_set_name ( RID font_rid, String name ) virtual

void

font_set_opentype_feature_overrides ( RID font_rid, Dictionary overrides ) virtual

void

font_set_oversampling ( RID font_rid, float oversampling ) virtual

void

font_set_scale ( RID font_rid, int size, float scale ) virtual

void

font_set_script_support_override ( RID font_rid, String script, bool supported ) virtual

void

font_set_style ( RID font_rid, FontStyle style ) virtual

void

font_set_style_name ( RID font_rid, String name_style ) virtual

void

font_set_subpixel_positioning ( RID font_rid, SubpixelPositioning subpixel_positioning ) virtual

void

font_set_texture_image ( RID font_rid, Vector2i size, int texture_index, Image image ) virtual

void

font_set_texture_offsets ( RID font_rid, Vector2i size, int texture_index, PackedInt32Array offset ) virtual

void

font_set_transform ( RID font_rid, Transform2D transform ) virtual

void

font_set_underline_position ( RID font_rid, int size, float underline_position ) virtual

void

font_set_underline_thickness ( RID font_rid, int size, float underline_thickness ) virtual

void

font_set_variation_coordinates ( RID font_rid, Dictionary variation_coordinates ) virtual

Dictionary

font_supported_feature_list ( RID font_rid ) virtual const

Dictionary

font_supported_variation_list ( RID font_rid ) virtual const

String

format_number ( String string, String language ) virtual const

void

free_rid ( RID rid ) virtual

int

get_features ( ) virtual const

Vector2

get_hex_code_box_size ( int size, int index ) virtual const

String

get_name ( ) virtual const

String

get_support_data_filename ( ) virtual const

String

get_support_data_info ( ) virtual const

bool

has ( RID rid ) virtual

bool

has_feature ( Feature feature ) virtual const

int

is_confusable ( String string, PackedStringArray dict ) virtual const

bool

is_locale_right_to_left ( String locale ) virtual const

bool

is_valid_identifier ( String string ) virtual const

bool

load_support_data ( String filename ) virtual

int

name_to_tag ( String name ) virtual const

String

parse_number ( String string, String language ) virtual const

Vector2i[]

parse_structured_text ( StructuredTextParser parser_type, Array args, String text ) virtual const

String

percent_sign ( String language ) virtual const

bool

save_support_data ( String filename ) virtual const

int

shaped_get_span_count ( RID shaped ) virtual const

Variant

shaped_get_span_meta ( RID shaped, int index ) virtual const

void

shaped_set_span_update_font ( RID shaped, int index, RID[] fonts, int size, Dictionary opentype_features ) virtual

bool

shaped_text_add_object ( RID shaped, Variant key, Vector2 size, InlineAlignment inline_align, int length ) virtual

bool

shaped_text_add_string ( RID shaped, String text, RID[] fonts, int size, Dictionary opentype_features, String language, Variant meta ) virtual

void

shaped_text_clear ( RID shaped ) virtual

void

shaped_text_draw ( RID shaped, RID canvas, Vector2 pos, float clip_l, float clip_r, Color color ) virtual const

void

shaped_text_draw_outline ( RID shaped, RID canvas, Vector2 pos, float clip_l, float clip_r, int outline_size, Color color ) virtual const

float

shaped_text_fit_to_width ( RID shaped, float width, JustificationFlag jst_flags ) virtual

float

shaped_text_get_ascent ( RID shaped ) virtual const

void

shaped_text_get_carets ( RID shaped, int position, CaretInfo* caret ) virtual const

String

shaped_text_get_custom_punctuation ( RID shaped ) virtual const

float

shaped_text_get_descent ( RID shaped ) virtual const

Direction

shaped_text_get_direction ( RID shaped ) virtual const

int

shaped_text_get_dominant_direction_in_range ( RID shaped, int start, int end ) virtual const

int

shaped_text_get_ellipsis_glyph_count ( RID shaped ) virtual const

const Glyph*

shaped_text_get_ellipsis_glyphs ( RID shaped ) virtual const

int

shaped_text_get_ellipsis_pos ( RID shaped ) virtual const

int

shaped_text_get_glyph_count ( RID shaped ) virtual const

const Glyph*

shaped_text_get_glyphs ( RID shaped ) virtual const

Vector2

shaped_text_get_grapheme_bounds ( RID shaped, int pos ) virtual const

Direction

shaped_text_get_inferred_direction ( RID shaped ) virtual const

PackedInt32Array

shaped_text_get_line_breaks ( RID shaped, float width, int start, LineBreakFlag break_flags ) virtual const

PackedInt32Array

shaped_text_get_line_breaks_adv ( RID shaped, PackedFloat32Array width, int start, bool once, LineBreakFlag break_flags ) virtual const

Rect2

shaped_text_get_object_rect ( RID shaped, Variant key ) virtual const

Array

shaped_text_get_objects ( RID shaped ) virtual const

Orientation

shaped_text_get_orientation ( RID shaped ) virtual const

RID

shaped_text_get_parent ( RID shaped ) virtual const

bool

shaped_text_get_preserve_control ( RID shaped ) virtual const

bool

shaped_text_get_preserve_invalid ( RID shaped ) virtual const

Vector2i

shaped_text_get_range ( RID shaped ) virtual const

PackedVector2Array

shaped_text_get_selection ( RID shaped, int start, int end ) virtual const

Vector2

shaped_text_get_size ( RID shaped ) virtual const

int

shaped_text_get_spacing ( RID shaped, SpacingType spacing ) virtual const

int

shaped_text_get_trim_pos ( RID shaped ) virtual const

float

shaped_text_get_underline_position ( RID shaped ) virtual const

float

shaped_text_get_underline_thickness ( RID shaped ) virtual const

float

shaped_text_get_width ( RID shaped ) virtual const

PackedInt32Array

shaped_text_get_word_breaks ( RID shaped, GraphemeFlag grapheme_flags ) virtual const

int

shaped_text_hit_test_grapheme ( RID shaped, float coord ) virtual const

int

shaped_text_hit_test_position ( RID shaped, float coord ) virtual const

bool

shaped_text_is_ready ( RID shaped ) virtual const

int

shaped_text_next_grapheme_pos ( RID shaped, int pos ) virtual const

void

shaped_text_overrun_trim_to_width ( RID shaped, float width, TextOverrunFlag trim_flags ) virtual

int

shaped_text_prev_grapheme_pos ( RID shaped, int pos ) virtual const

bool

shaped_text_resize_object ( RID shaped, Variant key, Vector2 size, InlineAlignment inline_align ) virtual

void

shaped_text_set_bidi_override ( RID shaped, Array override ) virtual

void

shaped_text_set_custom_punctuation ( RID shaped, String punct ) virtual

void

shaped_text_set_direction ( RID shaped, Direction direction ) virtual

void

shaped_text_set_orientation ( RID shaped, Orientation orientation ) virtual

void

shaped_text_set_preserve_control ( RID shaped, bool enabled ) virtual

void

shaped_text_set_preserve_invalid ( RID shaped, bool enabled ) virtual

void

shaped_text_set_spacing ( RID shaped, SpacingType spacing, int value ) virtual

bool

shaped_text_shape ( RID shaped ) virtual

const Glyph*

shaped_text_sort_logical ( RID shaped ) virtual

RID

shaped_text_substr ( RID shaped, int start, int length ) virtual const

float

shaped_text_tab_align ( RID shaped, PackedFloat32Array tab_stops ) virtual

bool

shaped_text_update_breaks ( RID shaped ) virtual

bool

shaped_text_update_justification_ops ( RID shaped ) virtual

bool

spoof_check ( String string ) virtual const

PackedInt32Array

string_get_word_breaks ( String string, String language ) virtual const

String

string_to_lower (