class

GSDL::FontOld

Inherits Reference < Object

Constructors

default(size : Float32) : FontOld

Creates a new font with the default path and a specific size.

Source
default

Gets the default font.

Source
get(key : String, size : Float32) : FontOld

Loads and retrieves a font using the FontOldManager. The key for the font manager will be "#{path}-#{size}".

Source
new(font : SDL3::TTF::Font, sdf : Bool = false)
Source

Instance methods

add_fallback(font : FontOld)
Source
align
Source
align=(align : Align)
Source
ascent
Source
clear_fallbacks
Source
close
Source
copy
Source
descent
Source
direction
Source
direction=(direction : Direction)
Source
faces
Source
family_name
Source
fixed_width?
Source
height
Source
hinting
Source
hinting=(hinting : Hinting)
Source
kerning
Source
kerning=(enabled : Bool)
Source
line_skip
Source
line_skip=(line_skip : Int32)
Source
measure(text : String, max_width : Int32) : Tuple(Int32, UInt64)
Source
outline
Source
outline=(outline : Int32)
Source
remove_fallback(font : FontOld)
Source
render_glyph_blended(char : UInt32, color : Color) : Surface
Source
render_glyph_lcd(char : UInt32, fg_color : Color, bg_color : Color) : Surface
Source
render_glyph_shaded(char : UInt32, fg_color : Color, bg_color : Color) : Surface
Source
render_glyph_solid(char : UInt32, color : Color) : Surface
Source
render_text_blended(text : String, color : Color) : Surface
Source
render_text_blended_wrapped(text : String, color : Color, wrap_length : Int32) : Surface
Source
render_text_lcd(text : String, fg_color : Color, bg_color : Color) : Surface
Source
render_text_lcd_wrapped(text : String, fg_color : Color, bg_color : Color, wrap_length : Int32) : Surface
Source
render_text_shaded(text : String, fg_color : Color, bg_color : Color) : Surface
Source
render_text_shaded_wrapped(text : String, fg_color : Color, bg_color : Color, wrap_length : Int32) : Surface
Source
render_text_solid(text : String, color : Color) : Surface
Source
render_text_solid_wrapped(text : String, color : Color, wrap_length : Int32) : Surface
Source
scalable?
Source
sdf=(enabled : Bool)
Source
set_dpi(point_size : Float32, hdpi : Int32, vdpi : Int32) : Bool
Source
size
Source
size=(size : Num)
Source
size_dpi(hdpi : Int32, vdpi : Int32) : Bool
Source
style
Source
style=(style : Style)
Source
style_name
Source
text_size(text : String) : Tuple(Int32, Int32)
Source
text_size_wrapped(text : String, wrap_width : Int32) : Tuple(Int32, Int32)
Source
to_sdl
Source
weight
Source

Nested types