module

GSDL::FontManager

Constants

DefaultFontKey = :default
DefaultFontSize = 16_f32
DefaultOutline = 0

Class methods

begin_frame
Source
clear_all
Source
default
Source
default_outline
Source
default_size
Source
find_symbol(name : String) : Symbol | Nil
Source
get(id : Symbol, size : Num, outline : Int32, weight : FontWeight = FontWeight::Normal, style : FontStyle = FontStyle::Regular) : Font
Source
get(name : String, size : Num, outline : Int32, weight : FontWeight = FontWeight::Normal, style : FontStyle = FontStyle::Regular) : Font

Retrieves a loaded font by its key.

Source
load(path_key : String, size : Num, outline : Int32) : Font

Loads a font based on the mode (release/debug).

Source
load_default(path_key : String, size : Float32 = DefaultFontSize, outline = DefaultOutline)
Source
load_from_memory(name : String, data : Bytes, size : Num, outline : Int32) : Font
Source
prune_dead_references

Housekeeping Maintenance Pass (Call during scene transitions)

Source
register_family(name : String, &) : Nil
Source
register_pair(key : Symbol, val : String)
Source
register_runtime(mappings : Hash(Symbol, String))
Source
register_runtime(mappings : NamedTuple)
Source
setup
Source
unload(key : String) : Nil
Source

Macros

register(mappings)
Source