class
Godot::FontFile
Defined in:
libgodot/generated/classes/classes_part2.crConstructors
Instance Method Summary
-
#allow_system_fallback
Property
#allow_system_fallbackgetter -
#allow_system_fallback=(val)
Property
#allow_system_fallbacksetter - #allow_system_fallback?
-
#antialiasing
Property
#antialiasinggetter -
#antialiasing=(val : Int)
Property
#antialiasingsetter - #clear_cache : Void
- #clear_glyphs(cache_index : Int64, size : Vector2i) : Void
- #clear_kerning_map(cache_index : Int64, size : Int64) : Void
- #clear_size_cache(cache_index : Int64) : Void
- #clear_textures(cache_index : Int64, size : Vector2i) : Void
-
#data
Property
#datagetter -
#data=(val)
Property
#datasetter -
#disable_embedded_bitmaps
Property
#disable_embedded_bitmapsgetter -
#disable_embedded_bitmaps=(val)
Property
#disable_embedded_bitmapssetter - #disable_embedded_bitmaps?
-
#fixed_size
Property
#fixed_sizegetter -
#fixed_size=(val : Int)
Property
#fixed_sizesetter -
#fixed_size_scale_mode
Property
#fixed_size_scale_modegetter -
#fixed_size_scale_mode=(val : Int)
Property
#fixed_size_scale_modesetter -
#font_name
Property
#font_namegetter -
#font_name=(val)
Property
#font_namesetter -
#font_stretch
Property
#font_stretchgetter -
#font_stretch=(val : Int)
Property
#font_stretchsetter -
#font_style
Property
#font_stylegetter -
#font_style=(val : Int)
Property
#font_stylesetter -
#font_weight
Property
#font_weightgetter -
#font_weight=(val : Int)
Property
#font_weightsetter -
#force_autohinter
Property
#force_autohintergetter -
#force_autohinter=(val)
Property
#force_autohintersetter - #force_autohinter?
-
#generate_mipmaps
Property
#generate_mipmapsgetter -
#generate_mipmaps=(val)
Property
#generate_mipmapssetter - #generate_mipmaps?
- #get_antialiasing : Int64
- #get_cache_ascent(cache_index : Int64, size : Int64) : Float64
- #get_cache_count : Int64
- #get_cache_descent(cache_index : Int64, size : Int64) : Float64
- #get_cache_scale(cache_index : Int64, size : Int64) : Float64
- #get_cache_underline_position(cache_index : Int64, size : Int64) : Float64
- #get_cache_underline_thickness(cache_index : Int64, size : Int64) : Float64
- #get_char_from_glyph_index(size : Int64, glyph_index : Int64) : Int64
- #get_data : Pointer(Void)
- #get_disable_embedded_bitmaps : Bool
- #get_embolden(cache_index : Int64) : Float64
- #get_extra_baseline_offset(cache_index : Int64) : Float64
- #get_extra_spacing(cache_index : Int64, spacing : Int64) : Int64
- #get_face_index(cache_index : Int64) : Int64
- #get_fixed_size : Int64
- #get_fixed_size_scale_mode : Int64
- #get_generate_mipmaps : Bool
- #get_glyph_advance(cache_index : Int64, size : Int64, glyph : Int64) : Vector2
- #get_glyph_index(size : Int64, char : Int64, variation_selector : Int64) : Int64
- #get_glyph_list(cache_index : Int64, size : Vector2i) : Pointer(Void)
- #get_glyph_offset(cache_index : Int64, size : Vector2i, glyph : Int64) : Vector2
- #get_glyph_size(cache_index : Int64, size : Vector2i, glyph : Int64) : Vector2
- #get_glyph_texture_idx(cache_index : Int64, size : Vector2i, glyph : Int64) : Int64
- #get_glyph_uv_rect(cache_index : Int64, size : Vector2i, glyph : Int64) : Rect2
- #get_hinting : Int64
- #get_keep_rounding_remainders : Bool
- #get_kerning(cache_index : Int64, size : Int64, glyph_pair : Vector2i) : Vector2
- #get_kerning_list(cache_index : Int64, size : Int64) : Godot::Array
- #get_language_support_override(language : String) : Bool
- #get_language_support_overrides : Pointer(Void)
- #get_msdf_pixel_range : Int64
- #get_msdf_size : Int64
- #get_opentype_feature_overrides : Pointer(Void)
- #get_oversampling : Float64
- #get_script_support_override(script : String) : Bool
- #get_script_support_overrides : Pointer(Void)
- #get_size_cache_list(cache_index : Int64) : Godot::Array
- #get_subpixel_positioning : Int64
- #get_texture_count(cache_index : Int64, size : Vector2i) : Int64
- #get_texture_image(cache_index : Int64, size : Vector2i, texture_index : Int64) : Image
- #get_texture_offsets(cache_index : Int64, size : Vector2i, texture_index : Int64) : Pointer(Void)
- #get_transform(cache_index : Int64) : Transform2D
- #get_variation_coordinates(cache_index : Int64) : Pointer(Void)
-
#hinting
Property
#hintinggetter -
#hinting=(val : Int)
Property
#hintingsetter - #is_allow_system_fallback : Bool
- #is_force_autohinter : Bool
- #is_modulate_color_glyphs : Bool
- #is_multichannel_signed_distance_field : Bool
-
#keep_rounding_remainders
Property
#keep_rounding_remaindersgetter -
#keep_rounding_remainders=(val)
Property
#keep_rounding_remainderssetter - #keep_rounding_remainders?
- #load_bitmap_font(path : String) : Int64
- #load_dynamic_font(path : String) : Int64
-
#modulate_color_glyphs
Property
#modulate_color_glyphsgetter -
#modulate_color_glyphs=(val)
Property
#modulate_color_glyphssetter - #modulate_color_glyphs?
-
#msdf_pixel_range
Property
#msdf_pixel_rangegetter -
#msdf_pixel_range=(val : Int)
Property
#msdf_pixel_rangesetter -
#msdf_size
Property
#msdf_sizegetter -
#msdf_size=(val : Int)
Property
#msdf_sizesetter -
#multichannel_signed_distance_field
Property
#multichannel_signed_distance_fieldgetter -
#multichannel_signed_distance_field=(val)
Property
#multichannel_signed_distance_fieldsetter - #multichannel_signed_distance_field?
-
#opentype_feature_overrides
Property
#opentype_feature_overridesgetter -
#opentype_feature_overrides=(val)
Property
#opentype_feature_overridessetter -
#oversampling
Property
#oversamplinggetter -
#oversampling=(val : Number)
Property
#oversamplingsetter - #remove_cache(cache_index : Int64) : Void
- #remove_glyph(cache_index : Int64, size : Vector2i, glyph : Int64) : Void
- #remove_kerning(cache_index : Int64, size : Int64, glyph_pair : Vector2i) : Void
- #remove_language_support_override(language : String) : Void
- #remove_script_support_override(script : String) : Void
- #remove_size_cache(cache_index : Int64, size : Vector2i) : Void
- #remove_texture(cache_index : Int64, size : Vector2i, texture_index : Int64) : Void
- #render_glyph(cache_index : Int64, size : Vector2i, index : Int64) : Void
- #render_range(cache_index : Int64, size : Vector2i, start : Int64, end_val : Int64) : Void
- #set_allow_system_fallback(allow_system_fallback : Bool) : Void
- #set_antialiasing(antialiasing : Int64) : Void
- #set_cache_ascent(cache_index : Int64, size : Int64, ascent : Float64) : Void
- #set_cache_descent(cache_index : Int64, size : Int64, descent : Float64) : Void
- #set_cache_scale(cache_index : Int64, size : Int64, scale : Float64) : Void
- #set_cache_underline_position(cache_index : Int64, size : Int64, underline_position : Float64) : Void
- #set_cache_underline_thickness(cache_index : Int64, size : Int64, underline_thickness : Float64) : Void
- #set_data(data : Pointer(Void)) : Void
- #set_disable_embedded_bitmaps(disable_embedded_bitmaps : Bool) : Void
- #set_embolden(cache_index : Int64, strength : Float64) : Void
- #set_extra_baseline_offset(cache_index : Int64, baseline_offset : Float64) : Void
- #set_extra_spacing(cache_index : Int64, spacing : Int64, value : Int64) : Void
- #set_face_index(cache_index : Int64, face_index : Int64) : Void
- #set_fixed_size(fixed_size : Int64) : Void
- #set_fixed_size_scale_mode(fixed_size_scale_mode : Int64) : Void
- #set_font_name(name : String) : Void
- #set_font_stretch(stretch : Int64) : Void
- #set_font_style(style : Int64) : Void
- #set_font_style_name(name : String) : Void
- #set_font_weight(weight : Int64) : Void
- #set_force_autohinter(force_autohinter : Bool) : Void
- #set_generate_mipmaps(generate_mipmaps : Bool) : Void
- #set_glyph_advance(cache_index : Int64, size : Int64, glyph : Int64, advance : Vector2) : Void
- #set_glyph_offset(cache_index : Int64, size : Vector2i, glyph : Int64, offset : Vector2) : Void
- #set_glyph_size(cache_index : Int64, size : Vector2i, glyph : Int64, gl_size : Vector2) : Void
- #set_glyph_texture_idx(cache_index : Int64, size : Vector2i, glyph : Int64, texture_idx : Int64) : Void
- #set_glyph_uv_rect(cache_index : Int64, size : Vector2i, glyph : Int64, uv_rect : Rect2) : Void
- #set_hinting(hinting : Int64) : Void
- #set_keep_rounding_remainders(keep_rounding_remainders : Bool) : Void
- #set_kerning(cache_index : Int64, size : Int64, glyph_pair : Vector2i, kerning : Vector2) : Void
- #set_language_support_override(language : String, supported : Bool) : Void
- #set_modulate_color_glyphs(modulate : Bool) : Void
- #set_msdf_pixel_range(msdf_pixel_range : Int64) : Void
- #set_msdf_size(msdf_size : Int64) : Void
- #set_multichannel_signed_distance_field(msdf : Bool) : Void
- #set_opentype_feature_overrides(overrides : Pointer(Void)) : Void
- #set_oversampling(oversampling : Float64) : Void
- #set_script_support_override(script : String, supported : Bool) : Void
- #set_subpixel_positioning(subpixel_positioning : Int64) : Void
- #set_texture_image(cache_index : Int64, size : Vector2i, texture_index : Int64, image : Image) : Void
- #set_texture_offsets(cache_index : Int64, size : Vector2i, texture_index : Int64, offset : Pointer(Void)) : Void
- #set_transform(cache_index : Int64, transform : Transform2D) : Void
- #set_variation_coordinates(cache_index : Int64, variation_coordinates : Pointer(Void)) : Void
-
#style_name
Property
#style_namegetter -
#style_name=(val)
Property
#style_namesetter -
#subpixel_positioning
Property
#subpixel_positioninggetter -
#subpixel_positioning=(val : Int)
Property
#subpixel_positioningsetter
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