module

GSDL::FontOldManager

Constants

DefaultFontKey = "default"
DefaultFontSize = 16_f32

Class methods

clear_all

Unloads all managed fonts from memory.

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

Retrieves a loaded font by its key.

Source
get_default(size : Float32 = DefaultFontSize)
Source
load(key : String, path_key : String, size : Float32) : FontOld

Loads a font based on the mode (release/debug). In release mode, it uses AssetManager to load from the packfile. In debug mode, it loads from the loose asset filesystem path, prepending GSDL::AssetManager.asset_path.

Source
load_default(path : String, size : Float32 = DefaultFontSize)
Source
load_from_memory(key : String, io : SDL3::IOStream, size : Float32) : FontOld

Loads a font from raw byte data and associates it with a key.

Source
unload(key : String) : Nil

Unloads a specific font from memory.

Source