class

Godot::TextServer

Inherits Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

create_font
Source
create_font_linked_variation(font_rid : Int64) : Int64
Source
create_shaped_text(direction : Int64, orientation : Int64) : Int64
Source
draw_hex_code_box(canvas : Int64, size : Int64, pos : Vector2, index : Int64, color : Color) : Void
Source
font_clear_glyphs(font_rid : Int64, size : Vector2i) : Void
Source
font_clear_kerning_map(font_rid : Int64, size : Int64) : Void
Source
font_clear_size_cache(font_rid : Int64) : Void
Source
font_clear_system_fallback_cache
Source
font_clear_textures(font_rid : Int64, size : Vector2i) : Void
Source
font_draw_glyph(font_rid : Int64, canvas : Int64, size : Int64, pos : Vector2, index : Int64, color : Color, oversampling : Float64) : Void
Source
font_draw_glyph_outline(font_rid : Int64, canvas : Int64, size : Int64, outline_size : Int64, pos : Vector2, index : Int64, color : Color, oversampling : Float64) : Void
Source
font_get_antialiasing(font_rid : Int64) : Int64
Source
font_get_ascent(font_rid : Int64, size : Int64) : Float64
Source
font_get_baseline_offset(font_rid : Int64) : Float64
Source
font_get_char_from_glyph_index(font_rid : Int64, size : Int64, glyph_index : Int64) : Int64
Source
font_get_descent(font_rid : Int64, size : Int64) : Float64
Source
font_get_disable_embedded_bitmaps(font_rid : Int64) : Bool
Source
font_get_embolden(font_rid : Int64) : Float64
Source
font_get_face_count(font_rid : Int64) : Int64
Source
font_get_face_index(font_rid : Int64) : Int64
Source
font_get_fixed_size(font_rid : Int64) : Int64
Source
font_get_fixed_size_scale_mode(font_rid : Int64) : Int64
Source
font_get_generate_mipmaps(font_rid : Int64) : Bool
Source
font_get_global_oversampling
Source
font_get_glyph_advance(font_rid : Int64, size : Int64, glyph : Int64) : Vector2
Source
font_get_glyph_contours(font : Int64, size : Int64, index : Int64) : Pointer(Void)
Source
font_get_glyph_index(font_rid : Int64, size : Int64, char : Int64, variation_selector : Int64) : Int64
Source
font_get_glyph_list(font_rid : Int64, size : Vector2i) : Pointer(Void)
Source
font_get_glyph_offset(font_rid : Int64, size : Vector2i, glyph : Int64) : Vector2
Source
font_get_glyph_size(font_rid : Int64, size : Vector2i, glyph : Int64) : Vector2
Source
font_get_glyph_texture_idx(font_rid : Int64, size : Vector2i, glyph : Int64) : Int64
Source
font_get_glyph_texture_rid(font_rid : Int64, size : Vector2i, glyph : Int64) : Int64
Source
font_get_glyph_texture_size(font_rid : Int64, size : Vector2i, glyph : Int64) : Vector2
Source
font_get_glyph_uv_rect(font_rid : Int64, size : Vector2i, glyph : Int64) : Rect2
Source
font_get_hinting(font_rid : Int64) : Int64
Source
font_get_keep_rounding_remainders(font_rid : Int64) : Bool
Source
font_get_kerning(font_rid : Int64, size : Int64, glyph_pair : Vector2i) : Vector2
Source
font_get_kerning_list(font_rid : Int64, size : Int64) : Godot::Array
Source
font_get_language_support_override(font_rid : Int64, language : String) : Bool
Source
font_get_language_support_overrides(font_rid : Int64) : Pointer(Void)
Source
font_get_msdf_pixel_range(font_rid : Int64) : Int64
Source
font_get_msdf_size(font_rid : Int64) : Int64
Source
font_get_name(font_rid : Int64) : String
Source
font_get_opentype_feature_overrides(font_rid : Int64) : Pointer(Void)
Source
font_get_ot_name_strings(font_rid : Int64) : Pointer(Void)
Source
font_get_oversampling(font_rid : Int64) : Float64
Source
font_get_palette_colors(font_rid : Int64, index : Int64) : Pointer(Void)
Source
font_get_palette_count(font_rid : Int64) : Int64
Source
font_get_palette_custom_colors(font_rid : Int64) : Pointer(Void)
Source
font_get_palette_name(font_rid : Int64, index : Int64) : String
Source
font_get_scale(font_rid : Int64, size : Int64) : Float64
Source
font_get_script_support_override(font_rid : Int64, script : String) : Bool
Source
font_get_script_support_overrides(font_rid : Int64) : Pointer(Void)
Source
font_get_size_cache_info(font_rid : Int64) : Godot::Array
Source
font_get_size_cache_list(font_rid : Int64) : Godot::Array
Source
font_get_spacing(font_rid : Int64, spacing : Int64) : Int64
Source
font_get_stretch(font_rid : Int64) : Int64
Source
font_get_style(font_rid : Int64) : Int64
Source
font_get_style_name(font_rid : Int64) : String
Source
font_get_subpixel_positioning(font_rid : Int64) : Int64
Source
font_get_supported_chars(font_rid : Int64) : String
Source
font_get_supported_glyphs(font_rid : Int64) : Pointer(Void)
Source
font_get_texture_count(font_rid : Int64, size : Vector2i) : Int64
Source
font_get_texture_image(font_rid : Int64, size : Vector2i, texture_index : Int64) : Image
Source
font_get_texture_offsets(font_rid : Int64, size : Vector2i, texture_index : Int64) : Pointer(Void)
Source
font_get_transform(font_rid : Int64) : Transform2D
Source
font_get_underline_position(font_rid : Int64, size : Int64) : Float64
Source
font_get_underline_thickness(font_rid : Int64, size : Int64) : Float64
Source
font_get_used_palette(font_rid : Int64) : Int64
Source
font_get_variation_coordinates(font_rid : Int64) : Pointer(Void)
Source
font_get_weight(font_rid : Int64) : Int64
Source
font_has_char(font_rid : Int64, char : Int64) : Bool
Source
font_is_allow_system_fallback(font_rid : Int64) : Bool
Source
font_is_force_autohinter(font_rid : Int64) : Bool
Source
font_is_language_supported(font_rid : Int64, language : String) : Bool
Source
font_is_modulate_color_glyphs(font_rid : Int64) : Bool
Source
font_is_multichannel_signed_distance_field(font_rid : Int64) : Bool
Source
font_is_script_supported(font_rid : Int64, script : String) : Bool
Source
font_remove_glyph(font_rid : Int64, size : Vector2i, glyph : Int64) : Void
Source
font_remove_kerning(font_rid : Int64, size : Int64, glyph_pair : Vector2i) : Void
Source
font_remove_language_support_override(font_rid : Int64, language : String) : Void
Source
font_remove_script_support_override(font_rid : Int64, script : String) : Void
Source
font_remove_size_cache(font_rid : Int64, size : Vector2i) : Void
Source
font_remove_texture(font_rid : Int64, size : Vector2i, texture_index : Int64) : Void
Source
font_render_glyph(font_rid : Int64, size : Vector2i, index : Int64) : Void
Source
font_render_range(font_rid : Int64, size : Vector2i, start : Int64, end_val : Int64) : Void
Source
font_set_allow_system_fallback(font_rid : Int64, allow_system_fallback : Bool) : Void
Source
font_set_antialiasing(font_rid : Int64, antialiasing : Int64) : Void
Source
font_set_ascent(font_rid : Int64, size : Int64, ascent : Float64) : Void
Source
font_set_baseline_offset(font_rid : Int64, baseline_offset : Float64) : Void
Source
font_set_data(font_rid : Int64, data : Pointer(Void)) : Void
Source
font_set_descent(font_rid : Int64, size : Int64, descent : Float64) : Void
Source
font_set_disable_embedded_bitmaps(font_rid : Int64, disable_embedded_bitmaps : Bool) : Void
Source
font_set_embolden(font_rid : Int64, strength : Float64) : Void
Source
font_set_face_index(font_rid : Int64, face_index : Int64) : Void
Source
font_set_fixed_size(font_rid : Int64, fixed_size : Int64) : Void
Source
font_set_fixed_size_scale_mode(font_rid : Int64, fixed_size_scale_mode : Int64) : Void
Source
font_set_force_autohinter(font_rid : Int64, force_autohinter : Bool) : Void
Source
font_set_generate_mipmaps(font_rid : Int64, generate_mipmaps : Bool) : Void
Source
font_set_global_oversampling(oversampling : Float64) : Void
Source
font_set_glyph_advance(font_rid : Int64, size : Int64, glyph : Int64, advance : Vector2) : Void
Source
font_set_glyph_offset(font_rid : Int64, size : Vector2i, glyph : Int64, offset : Vector2) : Void
Source
font_set_glyph_size(font_rid : Int64, size : Vector2i, glyph : Int64, gl_size : Vector2) : Void
Source
font_set_glyph_texture_idx(font_rid : Int64, size : Vector2i, glyph : Int64, texture_idx : Int64) : Void
Source
font_set_glyph_uv_rect(font_rid : Int64, size : Vector2i, glyph : Int64, uv_rect : Rect2) : Void
Source
font_set_hinting(font_rid : Int64, hinting : Int64) : Void
Source
font_set_keep_rounding_remainders(font_rid : Int64, keep_rounding_remainders : Bool) : Void
Source
font_set_kerning(font_rid : Int64, size : Int64, glyph_pair : Vector2i, kerning : Vector2) : Void
Source
font_set_language_support_override(font_rid : Int64, language : String, supported : Bool) : Void
Source
font_set_modulate_color_glyphs(font_rid : Int64, modulate : Bool) : Void
Source
font_set_msdf_pixel_range(font_rid : Int64, msdf_pixel_range : Int64) : Void
Source
font_set_msdf_size(font_rid : Int64, msdf_size : Int64) : Void
Source
font_set_multichannel_signed_distance_field(font_rid : Int64, msdf : Bool) : Void
Source
font_set_name(font_rid : Int64, name : String) : Void
Source
font_set_opentype_feature_overrides(font_rid : Int64, overrides : Pointer(Void)) : Void
Source
font_set_oversampling(font_rid : Int64, oversampling : Float64) : Void
Source
font_set_palette_custom_colors(font_rid : Int64, colors : Pointer(Void)) : Void
Source
font_set_scale(font_rid : Int64, size : Int64, scale : Float64) : Void
Source
font_set_script_support_override(font_rid : Int64, script : String, supported : Bool) : Void
Source
font_set_spacing(font_rid : Int64, spacing : Int64, value : Int64) : Void
Source
font_set_stretch(font_rid : Int64, weight : Int64) : Void
Source
font_set_style(font_rid : Int64, style : Int64) : Void
Source
font_set_style_name(font_rid : Int64, name : String) : Void
Source
font_set_subpixel_positioning(font_rid : Int64, subpixel_positioning : Int64) : Void
Source
font_set_texture_image(font_rid : Int64, size : Vector2i, texture_index : Int64, image : Image) : Void
Source
font_set_texture_offsets(font_rid : Int64, size : Vector2i, texture_index : Int64, offset : Pointer(Void)) : Void
Source
font_set_transform(font_rid : Int64, transform : Transform2D) : Void
Source
font_set_underline_position(font_rid : Int64, size : Int64, underline_position : Float64) : Void
Source
font_set_underline_thickness(font_rid : Int64, size : Int64, underline_thickness : Float64) : Void
Source
font_set_used_palette(font_rid : Int64, index : Int64) : Void
Source
font_set_variation_coordinates(font_rid : Int64, variation_coordinates : Pointer(Void)) : Void
Source
font_set_weight(font_rid : Int64, weight : Int64) : Void
Source
font_supported_feature_list(font_rid : Int64) : Pointer(Void)
Source
font_supported_variation_list(font_rid : Int64) : Pointer(Void)
Source
format_number(number : String, language : String) : String
Source
free_rid(rid : Int64) : Void
Source
get_features
Source
get_hex_code_box_size(size : Int64, index : Int64) : Vector2
Source
get_name
Source
get_short_name
Source
get_support_data
Source
get_support_data_filename
Source
get_support_data_info
Source
has(rid : Int64) : Bool
Source
has_feature(feature : Int64) : Bool
Source
is_confusable(string : String, dict : Pointer(Void)) : Int64
Source
is_locale_right_to_left(locale : String) : Bool
Source
is_locale_using_support_data(locale : String) : Bool
Source
is_valid_identifier(string : String) : Bool
Source
is_valid_letter(unicode : Int64) : Bool
Source
load_support_data(filename : String) : Bool
Source
name_to_tag(name : String) : Int64
Source
parse_number(number : String, language : String) : String
Source
parse_structured_text(parser_type : Int64, args : Godot::Array, text : String) : Godot::Array
Source
percent_sign(language : String) : String
Source
save_support_data(filename : String) : Bool
Source
shaped_get_run_count(shaped : Int64) : Int64
Source
shaped_get_run_direction(shaped : Int64, index : Int64) : Int64
Source
shaped_get_run_font_rid(shaped : Int64, index : Int64) : Int64
Source
shaped_get_run_font_size(shaped : Int64, index : Int64) : Int64
Source
shaped_get_run_glyph_range(shaped : Int64, index : Int64) : Vector2i
Source
shaped_get_run_language(shaped : Int64, index : Int64) : String
Source
shaped_get_run_object(shaped : Int64, index : Int64) : Pointer(Void)
Source
shaped_get_run_range(shaped : Int64, index : Int64) : Vector2i
Source
shaped_get_run_text(shaped : Int64, index : Int64) : String
Source
shaped_get_span_count(shaped : Int64) : Int64
Source
shaped_get_span_embedded_object(shaped : Int64, index : Int64) : Pointer(Void)
Source
shaped_get_span_meta(shaped : Int64, index : Int64) : Pointer(Void)
Source
shaped_get_span_object(shaped : Int64, index : Int64) : Pointer(Void)
Source
shaped_get_span_text(shaped : Int64, index : Int64) : String
Source
shaped_get_text(shaped : Int64) : String
Source
shaped_set_span_update_font(shaped : Int64, index : Int64, fonts : Godot::Array, size : Int64, opentype_features : Pointer(Void)) : Void
Source
shaped_text_add_object(shaped : Int64, key : Pointer(Void), size : Vector2, inline_align : Int64, length : Int64, baseline : Float64) : Bool
Source
shaped_text_add_string(shaped : Int64, text : String, fonts : Godot::Array, size : Int64, opentype_features : Pointer(Void), language : String, meta : Pointer(Void)) : Bool
Source
shaped_text_clear(rid : Int64) : Void
Source
shaped_text_closest_character_pos(shaped : Int64, pos : Int64) : Int64
Source
shaped_text_draw(shaped : Int64, canvas : Int64, pos : Vector2, clip_l : Float64, clip_r : Float64, color : Color, oversampling : Float64) : Void
Source
shaped_text_draw_outline(shaped : Int64, canvas : Int64, pos : Vector2, clip_l : Float64, clip_r : Float64, outline_size : Int64, color : Color, oversampling : Float64) : Void
Source
shaped_text_duplicate(rid : Int64) : Int64
Source
shaped_text_fit_to_width(shaped : Int64, width : Float64, justification_flags : Int64) : Float64
Source
shaped_text_get_ascent(shaped : Int64) : Float64
Source
shaped_text_get_carets(shaped : Int64, position : Int64) : Pointer(Void)
Source
shaped_text_get_character_breaks(shaped : Int64) : Pointer(Void)
Source
shaped_text_get_custom_ellipsis(shaped : Int64) : Int64
Source
shaped_text_get_custom_punctuation(shaped : Int64) : String
Source
shaped_text_get_descent(shaped : Int64) : Float64
Source
shaped_text_get_direction(shaped : Int64) : Int64
Source
shaped_text_get_dominant_direction_in_range(shaped : Int64, start : Int64, end_val : Int64) : Int64
Source
shaped_text_get_ellipsis_glyph_count(shaped : Int64) : Int64
Source
shaped_text_get_ellipsis_glyphs(shaped : Int64) : Godot::Array
Source
shaped_text_get_ellipsis_pos(shaped : Int64) : Int64
Source
shaped_text_get_glyph_count(shaped : Int64) : Int64
Source
shaped_text_get_glyphs(shaped : Int64) : Godot::Array
Source
shaped_text_get_grapheme_bounds(shaped : Int64, pos : Int64) : Vector2
Source
shaped_text_get_inferred_direction(shaped : Int64) : Int64
Source
shaped_text_get_line_breaks(shaped : Int64, width : Float64, start : Int64, break_flags : Int64) : Pointer(Void)
Source
shaped_text_get_line_breaks_adv(shaped : Int64, width : Pointer(Void), start : Int64, once : Bool, break_flags : Int64) : Pointer(Void)
Source
shaped_text_get_object_glyph(shaped : Int64, key : Pointer(Void)) : Int64
Source
shaped_text_get_object_range(shaped : Int64, key : Pointer(Void)) : Vector2i
Source
shaped_text_get_object_rect(shaped : Int64, key : Pointer(Void)) : Rect2
Source
shaped_text_get_objects(shaped : Int64) : Godot::Array
Source
shaped_text_get_orientation(shaped : Int64) : Int64
Source
shaped_text_get_parent(shaped : Int64) : Int64
Source
shaped_text_get_preserve_control(shaped : Int64) : Bool
Source
shaped_text_get_preserve_invalid(shaped : Int64) : Bool
Source
shaped_text_get_range(shaped : Int64) : Vector2i
Source
shaped_text_get_selection(shaped : Int64, start : Int64, end_val : Int64) : Pointer(Void)
Source
shaped_text_get_size(shaped : Int64) : Vector2
Source
shaped_text_get_spacing(shaped : Int64, spacing : Int64) : Int64
Source
shaped_text_get_trim_pos(shaped : Int64) : Int64
Source
shaped_text_get_underline_position(shaped : Int64) : Float64
Source
shaped_text_get_underline_thickness(shaped : Int64) : Float64
Source
shaped_text_get_width(shaped : Int64) : Float64
Source
shaped_text_get_word_breaks(shaped : Int64, grapheme_flags : Int64, skip_grapheme_flags : Int64) : Pointer(Void)
Source
shaped_text_has_object(shaped : Int64, key : Pointer(Void)) : Bool
Source
shaped_text_has_visible_chars(shaped : Int64) : Bool
Source
shaped_text_hit_test_grapheme(shaped : Int64, coords : Float64) : Int64
Source
shaped_text_hit_test_position(shaped : Int64, coords : Float64) : Int64
Source
shaped_text_is_ready(shaped : Int64) : Bool
Source
shaped_text_next_character_pos(shaped : Int64, pos : Int64) : Int64
Source
shaped_text_next_grapheme_pos(shaped : Int64, pos : Int64) : Int64
Source
shaped_text_overrun_trim_to_width(shaped : Int64, width : Float64, overrun_trim_flags : Int64) : Void
Source
shaped_text_prev_character_pos(shaped : Int64, pos : Int64) : Int64
Source
shaped_text_prev_grapheme_pos(shaped : Int64, pos : Int64) : Int64
Source
shaped_text_resize_object(shaped : Int64, key : Pointer(Void), size : Vector2, inline_align : Int64, baseline : Float64) : Bool
Source
shaped_text_set_bidi_override(shaped : Int64, override : Godot::Array) : Void
Source
shaped_text_set_custom_ellipsis(shaped : Int64, char : Int64) : Void
Source
shaped_text_set_custom_punctuation(shaped : Int64, punct : String) : Void
Source
shaped_text_set_direction(shaped : Int64, direction : Int64) : Void
Source
shaped_text_set_orientation(shaped : Int64, orientation : Int64) : Void
Source
shaped_text_set_preserve_control(shaped : Int64, enabled : Bool) : Void
Source
shaped_text_set_preserve_invalid(shaped : Int64, enabled : Bool) : Void
Source
shaped_text_set_spacing(shaped : Int64, spacing : Int64, value : Int64) : Void
Source
shaped_text_shape(shaped : Int64) : Bool
Source
shaped_text_sort_logical(shaped : Int64) : Godot::Array
Source
shaped_text_substr(shaped : Int64, start : Int64, length : Int64) : Int64
Source
shaped_text_tab_align(shaped : Int64, tab_stops : Pointer(Void)) : Float64
Source
spoof_check(string : String) : Bool
Source
string_get_character_breaks(string : String, language : String) : Pointer(Void)
Source
string_get_word_breaks(string : String, language : String, chars_per_line : Int64) : Pointer(Void)
Source
string_to_lower(string : String, language : String) : String
Source
string_to_title(string : String, language : String) : String
Source
string_to_upper(string : String, language : String) : String
Source
strip_diacritics(string : String) : String
Source
tag_to_name(tag : Int64) : String
Source

Nested types