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, oversampling : Float64) : Float64 draw_char, draw_char_outline(canvas_item : Int64, pos : Vector2, char : Int64, font_size : Int64, size : Int64, modulate : Color, oversampling : Float64) : Float64 draw_char_outline, 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 draw_multiline_string, 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 draw_multiline_string_outline, 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 draw_string, 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 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) : Float64 get_ascent, get_char_size(char : Int64, font_size : Int64) : Vector2 get_char_size, get_descent(font_size : Int64) : Float64 get_descent, get_face_count : Int64 get_face_count, get_fallbacks : Godot::Array get_fallbacks, get_font_name : String get_font_name, get_font_stretch : Int64 get_font_stretch, get_font_style : Int64 get_font_style, get_font_style_name : String get_font_style_name, get_font_weight : Int64 get_font_weight, get_height(font_size : Int64) : Float64 get_height, 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 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 : Godot::Array get_rids, get_spacing(spacing : Int64) : Int64 get_spacing, get_string_size(text : String, alignment : Int64, width : Float64, font_size : Int64, justification_flags : Int64, direction : Int64, orientation : Int64) : 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) : Float64 get_underline_position, get_underline_thickness(font_size : Int64) : Float64 get_underline_thickness, has_char(char : Int64) : Bool has_char, is_language_supported(language : String) : Bool is_language_supported, is_script_supported(script : String) : Bool is_script_supported, set_cache_capacity(single_line : Int64, multi_line : Int64) : Void set_cache_capacity, set_fallbacks(fallbacks : Godot::Array) : 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

copy_from_resource(resource : Resource) : Int64 copy_from_resource, duplicate(deep : Bool) : Resource duplicate, duplicate_deep(deep_subresources_mode : Int64) : Resource duplicate_deep, emit_changed : Void emit_changed, 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_local_to_scene : Bool is_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, take_over_path(path : String) : Void take_over_path

Constructor methods inherited from class Godot::Resource

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

Instance methods inherited from class Godot::RefCounted

destroy : Void destroy, get_reference_count : Int64 get_reference_count, init_ref : Bool init_ref, reference : Bool reference, 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
==
, _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, add_user_signal(signal : String, arguments : Godot::Array) : Void add_user_signal, alive? : Bool alive?, await_signal(signal_name : String, timeout_sec : Float64 | Nil = nil) : Array(Variant) await_signal, 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 : Godot::Array) : Pointer(Void) callv, can_translate_messages : Bool can_translate_messages, cancel_free : Void cancel_free, check_alive! : Void check_alive!, 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 : String, listener_target : Godot::Object, method_name : Symbol, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None) : SignalSubscription
connect(signal : String, callable : Pointer(Void), flags : Int64) : Int64
connect
, connect_one_shot(signal_name : String, &block : Array(Variant) -> Void) : SignalSubscription connect_one_shot, 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_signal(name : String) : Void
emit_signal(name : String, *args) : Void
emit_signal
, free : Void free, get(property : String) : Pointer(Void) get, get_class : String get_class, get_incoming_connections : Godot::Array get_incoming_connections, get_indexed(property_path : NodePath) : Pointer(Void) get_indexed, get_instance_id : Int64 get_instance_id, get_meta(name : String, default : Pointer(Void)) : Pointer(Void) get_meta, get_meta_list : Godot::Array get_meta_list, get_method_argument_count(method : String) : Int64 get_method_argument_count, get_method_list : Godot::Array get_method_list, get_property_list : Godot::Array get_property_list, get_script : Pointer(Void) get_script, get_signal_connection_list(signal : String) : Godot::Array get_signal_connection_list, get_signal_list : Godot::Array get_signal_list, get_translation_domain : String get_translation_domain, has_connections(signal : String) : Bool has_connections, has_meta(name : String) : Bool has_meta, 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, hash(hasher) hash, if_alive : self | Nil if_alive, instance_id : UInt64 instance_id, is_blocking_signals : Bool is_blocking_signals, is_class(godot_class : String) : Bool is_class, is_connected(signal : String, callable : Pointer(Void)) : Bool is_connected, 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) : 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_get_revert(property : String) : Pointer(Void) property_get_revert, puts(*args) puts, remove_meta(name : String) : Void remove_meta, remove_user_signal(signal : String) : Void remove_user_signal, 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, 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, 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, is_instance_id_valid(id : Int | UInt64) : Bool is_instance_id_valid

Constructor Detail

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

[View source]

Instance Method Detail

def allow_system_fallback #

Property #allow_system_fallback getter


[View source]
def allow_system_fallback=(val) #

Property #allow_system_fallback setter


[View source]
def allow_system_fallback? #

[View source]
def antialiasing #

Property #antialiasing getter


[View source]
def antialiasing=(val : Int) #

Property #antialiasing setter


[View source]
def disable_embedded_bitmaps #

Property #disable_embedded_bitmaps getter


[View source]
def disable_embedded_bitmaps=(val) #

Property #disable_embedded_bitmaps setter


[View source]
def disable_embedded_bitmaps? #

[View source]
def font_italic #

Property #font_italic getter


[View source]
def font_italic=(val) #

Property #font_italic setter


[View source]
def font_italic? #

[View source]
def font_names #

Property #font_names getter


[View source]
def font_names=(val) #

Property #font_names setter


[View source]
def font_stretch #

Property #font_stretch getter


[View source]
def font_stretch=(val : Int) #

Property #font_stretch setter


[View source]
def font_weight #

Property #font_weight getter


[View source]
def font_weight=(val : Int) #

Property #font_weight setter


[View source]
def force_autohinter #

Property #force_autohinter getter


[View source]
def force_autohinter=(val) #

Property #force_autohinter setter


[View source]
def force_autohinter? #

[View source]
def generate_mipmaps #

Property #generate_mipmaps getter


[View source]
def generate_mipmaps=(val) #

Property #generate_mipmaps setter


[View source]
def generate_mipmaps? #

[View source]
def get_antialiasing : Int64 #

[View source]
def get_disable_embedded_bitmaps : Bool #

[View source]
def get_font_italic : Bool #

[View source]
def get_font_names : Pointer(Void) #

[View source]
def get_generate_mipmaps : Bool #

[View source]
def get_hinting : Int64 #

[View source]
def get_keep_rounding_remainders : Bool #

[View source]
def get_msdf_pixel_range : Int64 #

[View source]
def get_msdf_size : Int64 #

[View source]
def get_oversampling : Float64 #

[View source]
def get_subpixel_positioning : Int64 #

[View source]
def hinting #

Property #hinting getter


[View source]
def hinting=(val : Int) #

Property #hinting setter


[View source]
def is_allow_system_fallback : Bool #

[View source]
def is_force_autohinter : Bool #

[View source]
def is_modulate_color_glyphs : Bool #

[View source]
def is_multichannel_signed_distance_field : Bool #

[View source]
def keep_rounding_remainders #

Property #keep_rounding_remainders getter


[View source]
def keep_rounding_remainders=(val) #

Property #keep_rounding_remainders setter


[View source]
def keep_rounding_remainders? #

[View source]
def modulate_color_glyphs #

Property #modulate_color_glyphs getter


[View source]
def modulate_color_glyphs=(val) #

Property #modulate_color_glyphs setter


[View source]
def modulate_color_glyphs? #

[View source]
def msdf_pixel_range #

Property #msdf_pixel_range getter


[View source]
def msdf_pixel_range=(val : Int) #

Property #msdf_pixel_range setter


[View source]
def msdf_size #

Property #msdf_size getter


[View source]
def msdf_size=(val : Int) #

Property #msdf_size setter


[View source]
def multichannel_signed_distance_field #

[View source]
def multichannel_signed_distance_field=(val) #

[View source]
def multichannel_signed_distance_field? #

[View source]
def oversampling #

Property #oversampling getter


[View source]
def oversampling=(val : Number) #

Property #oversampling setter


[View source]
def set_allow_system_fallback(allow_system_fallback : Bool) : Void #

[View source]
def set_antialiasing(antialiasing : Int64) : Void #

[View source]
def set_disable_embedded_bitmaps(disable_embedded_bitmaps : Bool) : Void #

[View source]
def set_font_italic(italic : Bool) : Void #

[View source]
def set_font_names(names : Pointer(Void)) : Void #

[View source]
def set_font_stretch(stretch : Int64) : Void #

[View source]
def set_font_weight(weight : Int64) : Void #

[View source]
def set_force_autohinter(force_autohinter : Bool) : Void #

[View source]
def set_generate_mipmaps(generate_mipmaps : Bool) : Void #

[View source]
def set_hinting(hinting : Int64) : Void #

[View source]
def set_keep_rounding_remainders(keep_rounding_remainders : Bool) : Void #

[View source]
def set_modulate_color_glyphs(modulate : Bool) : Void #

[View source]
def set_msdf_pixel_range(msdf_pixel_range : Int64) : Void #

[View source]
def set_msdf_size(msdf_size : Int64) : Void #

[View source]
def set_multichannel_signed_distance_field(msdf : Bool) : Void #

[View source]
def set_oversampling(oversampling : Float64) : Void #

[View source]
def set_subpixel_positioning(subpixel_positioning : Int64) : Void #

[View source]
def subpixel_positioning #

Property #subpixel_positioning getter


[View source]
def subpixel_positioning=(val : Int) #

Property #subpixel_positioning setter


[View source]