class Godot::SystemFont

Defined in:

libgodot/generated/classes/classes_part5.cr

Constructors

Instance Method Summary

Instance methods inherited from class Godot::Font

draw_char(canvas_item : Int64, pos : Vector2, char : Int64, font_size : Int64, modulate : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Float64 draw_char, draw_char_outline(canvas_item : Int64, pos : Vector2, char : Int64, font_size : Int64, size : Int64 = -1_i64, modulate : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Float64 draw_char_outline, draw_multiline_string(canvas_item : Int64, pos : Vector2, text : String, alignment : Godot::HorizontalAlignment | Int = 0, width : Float64 = -1.0, font_size : Int64 = 16_i64, max_lines : Int64 = -1_i64, modulate : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), brk_flags : Godot::TextServer::LineBreakFlag | Int = 3, justification_flags : Godot::TextServer::JustificationFlag | Int = 3, direction : Godot::TextServer::Direction | Int = 0, orientation : Godot::TextServer::Orientation | Int = 0, oversampling : Float64 = 0.0) : Void draw_multiline_string, draw_multiline_string_outline(canvas_item : Int64, pos : Vector2, text : String, alignment : Godot::HorizontalAlignment | Int = 0, width : Float64 = -1.0, font_size : Int64 = 16_i64, max_lines : Int64 = -1_i64, size : Int64 = 1_i64, modulate : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), brk_flags : Godot::TextServer::LineBreakFlag | Int = 3, justification_flags : Godot::TextServer::JustificationFlag | Int = 3, direction : Godot::TextServer::Direction | Int = 0, orientation : Godot::TextServer::Orientation | Int = 0, oversampling : Float64 = 0.0) : Void draw_multiline_string_outline, draw_string(canvas_item : Int64, pos : Vector2, text : String, alignment : Godot::HorizontalAlignment | Int = 0, width : Float64 = -1.0, font_size : Int64 = 16_i64, modulate : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), justification_flags : Godot::TextServer::JustificationFlag | Int = 3, direction : Godot::TextServer::Direction | Int = 0, orientation : Godot::TextServer::Orientation | Int = 0, oversampling : Float64 = 0.0) : Void draw_string, draw_string_outline(canvas_item : Int64, pos : Vector2, text : String, alignment : Godot::HorizontalAlignment | Int = 0, width : Float64 = -1.0, font_size : Int64 = 16_i64, size : Int64 = 1_i64, modulate : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), justification_flags : Godot::TextServer::JustificationFlag | Int = 3, direction : Godot::TextServer::Direction | Int = 0, orientation : Godot::TextServer::Orientation | Int = 0, oversampling : Float64 = 0.0) : Void draw_string_outline, fallbacks fallbacks, fallbacks=(val) fallbacks=, 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 find_variation, get_ascent(font_size : Int64 = 16_i64) : Float64 get_ascent, get_char_size(char : Int64, font_size : Int64) : Vector2 get_char_size, get_descent(font_size : Int64 = 16_i64) : Float64 get_descent, get_face_count : Int64 get_face_count, get_fallbacks : Pointer(Void) get_fallbacks, get_font_name : String get_font_name, get_font_stretch : Int64 get_font_stretch, get_font_style : Godot::TextServer::FontStyle get_font_style, get_font_style_name : String get_font_style_name, get_font_weight : Int64 get_font_weight, get_height(font_size : Int64 = 16_i64) : Float64 get_height, get_multiline_string_size(text : String, alignment : Godot::HorizontalAlignment | Int = 0, width : Float64 = -1.0, font_size : Int64 = 16_i64, max_lines : Int64 = -1_i64, brk_flags : Godot::TextServer::LineBreakFlag | Int = 3, justification_flags : Godot::TextServer::JustificationFlag | Int = 3, direction : Godot::TextServer::Direction | Int = 0, orientation : Godot::TextServer::Orientation | Int = 0) : Vector2 get_multiline_string_size, get_opentype_features : Pointer(Void) get_opentype_features, get_ot_name_strings : Pointer(Void) get_ot_name_strings, get_palette_colors(index : Int64) : Pointer(Void) get_palette_colors, get_palette_count : Int64 get_palette_count, get_palette_name(index : Int64) : String get_palette_name, get_rids : Pointer(Void) get_rids, get_spacing(spacing : Godot::TextServer::SpacingType | Int) : Int64 get_spacing, get_string_size(text : String, alignment : Godot::HorizontalAlignment | Int = 0, width : Float64 = -1.0, font_size : Int64 = 16_i64, justification_flags : Godot::TextServer::JustificationFlag | Int = 3, direction : Godot::TextServer::Direction | Int = 0, orientation : Godot::TextServer::Orientation | Int = 0) : Vector2 get_string_size, get_supported_chars : String get_supported_chars, get_supported_feature_list : Pointer(Void) get_supported_feature_list, get_supported_variation_list : Pointer(Void) get_supported_variation_list, get_underline_position(font_size : Int64 = 16_i64) : Float64 get_underline_position, get_underline_thickness(font_size : Int64 = 16_i64) : Float64 get_underline_thickness, has_char(char : Int64) : Bool has_char, has_char?(char : Int64) : Bool has_char?, is_language_supported(language : String) : Bool is_language_supported, is_language_supported?(language : String) : Bool is_language_supported?, is_script_supported(script : String) : Bool is_script_supported, is_script_supported?(script : String) : Bool is_script_supported?, language_supported?(language : String) : Bool language_supported?, script_supported?(script : String) : Bool script_supported?, set_cache_capacity(single_line : Int64, multi_line : Int64) : Void set_cache_capacity, set_fallbacks(fallbacks : Pointer(Void)) : Void set_fallbacks

Constructor methods inherited from class Godot::Font

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

Instance methods inherited from class Godot::Resource

built_in? : Bool built_in?, changed : Godot::TypedSignal() changed, copy_from_resource(resource : Resource) : Godot::Error copy_from_resource, duplicate(deep : Bool = false) : Resource duplicate, duplicate_deep(deep_subresources_mode : DeepDuplicateMode | Int = 1) : Resource duplicate_deep, emit_changed : Void emit_changed, emit_setup_local_to_scene_requested : Void emit_setup_local_to_scene_requested, generate_scene_unique_id : String generate_scene_unique_id, get_id_for_path(path : String) : String get_id_for_path, get_local_scene : Node get_local_scene, get_name : String get_name, get_path : String get_path, get_rid : Int64 get_rid, get_scene_unique_id : String get_scene_unique_id, is_built_in : Bool is_built_in, is_built_in? : Bool is_built_in?, is_local_to_scene : Bool is_local_to_scene, is_local_to_scene? : Bool is_local_to_scene?, local_to_scene? : Bool local_to_scene?, reset_state : Void reset_state, resource_local_to_scene resource_local_to_scene, resource_local_to_scene=(val) resource_local_to_scene=, resource_local_to_scene? resource_local_to_scene?, resource_name resource_name, resource_name=(val) resource_name=, resource_path resource_path, resource_path=(val) resource_path=, resource_scene_unique_id resource_scene_unique_id, resource_scene_unique_id=(val) resource_scene_unique_id=, set_id_for_path(path : String, id : String) : Void set_id_for_path, set_local_to_scene(enable : Bool) : Void set_local_to_scene, set_name(name : String) : Void set_name, set_path(path : String) : Void set_path, set_path_cache(path : String) : Void set_path_cache, set_scene_unique_id(id : String) : Void set_scene_unique_id, setup_local_to_scene : Void setup_local_to_scene, setup_local_to_scene_requested : Godot::TypedSignal() setup_local_to_scene_requested, take_over_path(path : String) : Void take_over_path

Constructor methods inherited from class Godot::Resource

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

Class methods inherited from class Godot::Resource

generate_scene_unique_id : String generate_scene_unique_id

Instance methods inherited from class Godot::RefCounted

destroy : Void destroy, get_reference_count : Int64 get_reference_count, init_ref : Bool init_ref, init_ref? : Bool init_ref?, reference : Bool reference, reference? : Bool reference?, unreference : Bool unreference, unreference? : Bool unreference?

Constructor methods inherited from class Godot::RefCounted

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

Instance methods inherited from class Godot::Object

==(other : Godot::Object) : Bool
==(other : Nil) : Bool
==
, _enter_tree : Void _enter_tree, _exit_tree : Void _exit_tree, _godot_call_tool_button(button_name : String) : Void _godot_call_tool_button, _godot_call_virtual(method_name : String, delta : Float64) : Void _godot_call_virtual, _godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void _godot_call_virtual_with_data, _godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void _godot_get_property, _godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void _godot_set_property, _physics_process(delta : Float64) : Void _physics_process, _process(delta : Float64) : Void _process, _ready : Void _ready, add_user_signal(signal : String, arguments : Pointer(Void)) : Void add_user_signal, alive? : Bool alive?, await_signal(signal_name : String, timeout_sec : Float64 | Nil = nil) : Array(Variant) await_signal, blocking_signals? : Bool blocking_signals?, call(method : String, *args) : Pointer(Void) call, call_bool(method : String, *args) : Bool call_bool, call_deferred(method : String, *args) : Pointer(Void) call_deferred, call_f64(method : String, *args) : Float64 call_f64, call_i64(method : String, *args) : Int64 call_i64, call_obj(method : String, *args) : Node | Nil call_obj, call_obj_as(type : T.class, method : String, *args) : T | Nil forall T call_obj_as, call_str(method : String, *args) : String call_str, callv(method : String, arg_array : Pointer(Void)) : Pointer(Void) callv, can_translate_messages : Bool can_translate_messages, can_translate_messages? : Bool can_translate_messages?, cancel_free : Void cancel_free, check_alive! : Void check_alive!, class?(godot_class : String) : Bool class?, connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, callback : Proc(Array(Variant), Void) | Nil = nil) : SignalSubscription
connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, &block : Array(Variant) -> Void) : SignalSubscription
connect(signal_name : Symbol, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, &block : Array(Variant) -> Void) : SignalSubscription
connect(signal_name : String, listener_target : Godot::Object, method_name : Symbol, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None) : SignalSubscription
connect(signal : String, callable : Pointer(Void), flags : Int64 = 0_i64) : Godot::Error
connect
, connect_one_shot(signal_name : String, &block : Array(Variant) -> Void) : SignalSubscription connect_one_shot, connected?(signal : String, callable : Pointer(Void)) : Bool connected?, destroy : Void destroy, destroyed? : Bool destroyed?, disconnect(signal : String, callable : Pointer(Void)) : Void
disconnect(signal_name : String) : Void
disconnect
, editor_hint? : Bool editor_hint?, emit_property_list_changed : Void emit_property_list_changed, emit_script_changed : Void emit_script_changed, emit_signal(name : String) : Void
emit_signal(name : String, *args) : Void
emit_signal
, explicitly_freed? : Bool explicitly_freed?, free : Void free, get(property : String) : Pointer(Void) get, get_class : String get_class, get_incoming_connections : Pointer(Void) get_incoming_connections, get_indexed(property_path : NodePath | String) : Pointer(Void) get_indexed, get_instance_id : Int64 get_instance_id, get_meta(name : String, default : Pointer(Void) | Nil = nil) : Pointer(Void) get_meta, get_meta_list : Pointer(Void) get_meta_list, get_method_argument_count(method : String) : Int64 get_method_argument_count, get_method_list : Pointer(Void) get_method_list, get_property_list : Pointer(Void) get_property_list, get_script : Pointer(Void) get_script, get_signal_connection_list(signal : String) : Pointer(Void) get_signal_connection_list, get_signal_list : Pointer(Void) get_signal_list, get_translation_domain : String get_translation_domain, has_connections(signal : String) : Bool has_connections, has_connections?(signal : String) : Bool has_connections?, has_meta(name : String) : Bool has_meta, has_meta?(name : String) : Bool has_meta?, has_method(method : String) : Bool has_method, has_method?(method : String) : Bool has_method?, has_signal(signal : String) : Bool has_signal, has_signal?(signal_name : String) : Bool has_signal?, has_user_signal(signal : String) : Bool has_user_signal, has_user_signal?(signal : String) : Bool has_user_signal?, hash(hasher) hash, if_alive : self | Nil if_alive, instance_id : UInt64 instance_id, is_blocking_signals : Bool is_blocking_signals, is_blocking_signals? : Bool is_blocking_signals?, is_class(godot_class : String) : Bool is_class, is_class?(godot_class : String) : Bool is_class?, is_connected(signal : String, callable : Pointer(Void)) : Bool is_connected, is_connected?(signal : String, callable : Pointer(Void)) : Bool is_connected?, is_queued_for_deletion : Bool is_queued_for_deletion, is_queued_for_deletion? : Bool is_queued_for_deletion?, is_valid? : Bool is_valid?, link_class_script : Void link_class_script, notification(what : Int64, reversed : Bool = false) : Void notification, notify_property_list_changed : Void notify_property_list_changed, pointer : Pointer(Void) pointer, pointer=(val : Pointer(Void)) pointer=, print(*args) print, printerr(*args) printerr, property_can_revert(property : String) : Bool property_can_revert, property_can_revert?(property : String) : Bool property_can_revert?, property_get_revert(property : String) : Pointer(Void) property_get_revert, property_list_changed : Godot::TypedSignal() property_list_changed, puts(*args) puts, queued_for_deletion? : Bool queued_for_deletion?, remove_meta(name : String) : Void remove_meta, remove_user_signal(signal : String) : Void remove_user_signal, script_changed : Godot::TypedSignal() script_changed, set(property : String, value : Pointer(Void)) : Void set, set_block_signals(enable : Bool) : Void set_block_signals, set_deferred(property : String, value : Pointer(Void)) : Void set_deferred, set_indexed(property_path : NodePath | String, value : Pointer(Void)) : Void set_indexed, set_message_translation(enable : Bool) : Void set_message_translation, set_meta(name : String, value : Pointer(Void)) : Void set_meta, set_script(script : Pointer(Void)) : Void set_script, set_translation_domain(domain : String) : Void set_translation_domain, signal(name : String) : Godot::BoundSignal
signal(sym : Symbol) : Godot::BoundSignal
signal
, signal_connection_count(signal_name : String) : Int32 signal_connection_count, signal_target_id : UInt64 signal_target_id, to_s(io : IO) : Void to_s, to_string : String to_string, to_unsafe : Pointer(Void) to_unsafe, tr(message : String, context : String = "") : String tr, tr_n(message : String, plural_message : String, n : Int64, context : String = "") : String tr_n

Constructor methods inherited from class Godot::Object

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

Class methods inherited from class Godot::Object

_godot_has_virtual_method(method_name : String) : Bool _godot_has_virtual_method, find_script_path_for_class(target_cls : String) : String find_script_path_for_class, is_instance_id_valid(id : Int | UInt64) : Bool is_instance_id_valid

Constructor Detail

def self.new(pointer : Pointer(Void) = Pointer(Void).null) #

Instance Method Detail

def allow_system_fallback #

Property #allow_system_fallback getter


def allow_system_fallback=(val) #

Property #allow_system_fallback setter


def allow_system_fallback? : Bool #

Predicate alias for #is_allow_system_fallback


def antialiasing #

Property #antialiasing getter


def antialiasing=(val : Int) #

Property #antialiasing setter


def disable_embedded_bitmaps #

Property #disable_embedded_bitmaps getter


def disable_embedded_bitmaps=(val) #

Property #disable_embedded_bitmaps setter


def disable_embedded_bitmaps? #

def font_italic #

Property #font_italic getter


def font_italic=(val) #

Property #font_italic setter


def font_italic? #

def font_names #

Property #font_names getter


def font_names=(val) #

Property #font_names setter


def font_stretch #

Property #font_stretch getter


def font_stretch=(val : Int) #

Property #font_stretch setter


def font_weight #

Property #font_weight getter


def font_weight=(val : Int) #

Property #font_weight setter


def force_autohinter #

Property #force_autohinter getter


def force_autohinter=(val) #

Property #force_autohinter setter


def force_autohinter? : Bool #

Predicate alias for #is_force_autohinter


def generate_mipmaps #

Property #generate_mipmaps getter


def generate_mipmaps=(val) #

Property #generate_mipmaps setter


def generate_mipmaps? #

def get_antialiasing : Godot::TextServer::FontAntialiasing #

def get_disable_embedded_bitmaps : Bool #

def get_disable_embedded_bitmaps? : Bool #

Predicate alias for #get_disable_embedded_bitmaps


def get_font_italic : Bool #

def get_font_italic? : Bool #

Predicate alias for #get_font_italic


def get_font_names : Pointer(Void) #

def get_generate_mipmaps : Bool #

def get_generate_mipmaps? : Bool #

Predicate alias for #get_generate_mipmaps


def get_hinting : Godot::TextServer::Hinting #

def get_keep_rounding_remainders : Bool #

def get_keep_rounding_remainders? : Bool #

Predicate alias for #get_keep_rounding_remainders


def get_msdf_pixel_range : Int64 #

def get_msdf_size : Int64 #

def get_oversampling : Float64 #

def get_subpixel_positioning : Godot::TextServer::SubpixelPositioning #

def hinting #

Property #hinting getter


def hinting=(val : Int) #

Property #hinting setter


def is_allow_system_fallback : Bool #

def is_allow_system_fallback? : Bool #

Predicate alias for #is_allow_system_fallback


def is_force_autohinter : Bool #

def is_force_autohinter? : Bool #

Predicate alias for #is_force_autohinter


def is_modulate_color_glyphs : Bool #

def is_modulate_color_glyphs? : Bool #

Predicate alias for #is_modulate_color_glyphs


def is_multichannel_signed_distance_field : Bool #

def is_multichannel_signed_distance_field? : Bool #

def keep_rounding_remainders #

Property #keep_rounding_remainders getter


def keep_rounding_remainders=(val) #

Property #keep_rounding_remainders setter


def keep_rounding_remainders? #

def modulate_color_glyphs #

Property #modulate_color_glyphs getter


def modulate_color_glyphs=(val) #

Property #modulate_color_glyphs setter


def modulate_color_glyphs? : Bool #

Predicate alias for #is_modulate_color_glyphs


def msdf_pixel_range #

Property #msdf_pixel_range getter


def msdf_pixel_range=(val : Int) #

Property #msdf_pixel_range setter


def msdf_size #

Property #msdf_size getter


def msdf_size=(val : Int) #

Property #msdf_size setter


def multichannel_signed_distance_field #

def multichannel_signed_distance_field=(val) #

def multichannel_signed_distance_field? : Bool #

def oversampling #

Property #oversampling getter


def oversampling=(val : Number) #

Property #oversampling setter


def set_allow_system_fallback(allow_system_fallback : Bool) : Void #

def set_antialiasing(antialiasing : Godot::TextServer::FontAntialiasing | Int) : Void #

def set_disable_embedded_bitmaps(disable_embedded_bitmaps : Bool) : Void #

def set_font_italic(italic : Bool) : Void #

def set_font_names(names : Pointer(Void)) : Void #

def set_font_stretch(stretch : Int64) : Void #

def set_font_weight(weight : Int64) : Void #

def set_force_autohinter(force_autohinter : Bool) : Void #

def set_generate_mipmaps(generate_mipmaps : Bool) : Void #

def set_hinting(hinting : Godot::TextServer::Hinting | Int) : Void #

def set_keep_rounding_remainders(keep_rounding_remainders : Bool) : Void #

def set_modulate_color_glyphs(modulate : Bool) : Void #

def set_msdf_pixel_range(msdf_pixel_range : Int64) : Void #

def set_msdf_size(msdf_size : Int64) : Void #

def set_multichannel_signed_distance_field(msdf : Bool) : Void #

def set_oversampling(oversampling : Float64) : Void #

def set_subpixel_positioning(subpixel_positioning : Godot::TextServer::SubpixelPositioning | Int) : Void #

def subpixel_positioning #

Property #subpixel_positioning getter


def subpixel_positioning=(val : Int) #

Property #subpixel_positioning setter