class

GSDL::Font

Inherits Reference < Object

Constants

DefaultFontSize = 16

Constructors

new(name : String, data : Bytes, size : Num = DefaultFontSize, outline : Int32 = 0)
Source

Instance methods

begin_frame
Source
calculate_oversample(font_size : Num, total_scale : Float32) : Int32
Source
calculate_total_scale
Source
calculate_width(text : String, character_spacing : Num = 0) : Float32
Source
destroy
Source
draw_text(draw : Draw, text : String, x : Num, y : Num, character_spacing : Num = 0, color : Color = Color::White, scale_x : Num = 1, scale_y : Num = 1, z_index : Int32 = 0)
Source
font_size
Source
generate_vertices(text : String, pivot_x : Num, pivot_y : Num, start_x : Num, start_y : Num, rotation : Num, character_spacing : Num = 0, color : Color = Color::White, scale_x : Num = 1, scale_y : Num = 1) : Array(Vertex)
Source
get_kerning(prev_char : Char, curr_char : Char) : Float32
Source
name
Source
outline
Source
texture
Source
touch_glyph(char : Char) : GlyphMetric
Source