class

Godot::Font

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

Constructors

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

Instance methods

draw_char(canvas_item : Int64, pos : Vector2, char : Int64, font_size : Int64, modulate : Color, oversampling : Float64) : Float64
Source
draw_char_outline(canvas_item : Int64, pos : Vector2, char : Int64, font_size : Int64, size : Int64, modulate : Color, oversampling : Float64) : Float64
Source
draw_multiline_string(canvas_item : Int64, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, max_lines : Int64, modulate : Color, brk_flags : Int64, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void
Source
draw_multiline_string_outline(canvas_item : Int64, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, max_lines : Int64, size : Int64, modulate : Color, brk_flags : Int64, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void
Source
draw_string(canvas_item : Int64, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, modulate : Color, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void
Source
draw_string_outline(canvas_item : Int64, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, size : Int64, modulate : Color, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void
Source
fallbacks

Property fallbacks getter

Source
fallbacks=(val)

Property fallbacks setter

Source
find_variation(variation_coordinates : Pointer(Void), face_index : Int64, strength : Float64, transform : Transform2D, spacing_top : Int64, spacing_bottom : Int64, spacing_space : Int64, spacing_glyph : Int64, baseline_offset : Float64, palette_index : Int64, custom_colors : Pointer(Void)) : Int64
Source
get_ascent(font_size : Int64) : Float64
Source
get_char_size(char : Int64, font_size : Int64) : Vector2
Source
get_descent(font_size : Int64) : Float64
Source
get_face_count
Source
get_fallbacks
Source
get_font_name
Source
get_font_stretch
Source
get_font_style
Source
get_font_style_name
Source
get_font_weight
Source
get_height(font_size : Int64) : Float64
Source
get_multiline_string_size(text : String, alignment : Int64, width : Float64, font_size : Int64, max_lines : Int64, brk_flags : Int64, justification_flags : Int64, direction : Int64, orientation : Int64) : Vector2
Source
get_opentype_features
Source
get_ot_name_strings
Source
get_palette_colors(index : Int64) : Pointer(Void)
Source
get_palette_count
Source
get_palette_name(index : Int64) : String
Source
get_rids
Source
get_spacing(spacing : Int64) : Int64
Source
get_string_size(text : String, alignment : Int64, width : Float64, font_size : Int64, justification_flags : Int64, direction : Int64, orientation : Int64) : Vector2
Source
get_supported_chars
Source
get_supported_feature_list
Source
get_supported_variation_list
Source
get_underline_position(font_size : Int64) : Float64
Source
get_underline_thickness(font_size : Int64) : Float64
Source
has_char(char : Int64) : Bool
Source
is_language_supported(language : String) : Bool
Source
is_script_supported(script : String) : Bool
Source
set_cache_capacity(single_line : Int64, multi_line : Int64) : Void
Source
set_fallbacks(fallbacks : Godot::Array) : Void
Source