PointClickEngine::Graphics::Utils::BitmapFont
Inherits Reference < Object
Bitmap font loader and manager
Constructors
load_custom(texture_path : String, data_path : String) : BitmapFont
Load font from custom format (JSON-like)
load_grid(texture_path : String, char_width : Int32, char_height : Int32, first_char : Char = ' ', chars_per_row : Int32 = 16) : BitmapFont
Load font from sprite sheet with fixed grid
new(texture : RL::Texture2D, base_size : Int32, line_height : Int32)
SourceInstance methods
add_glyph(char : Char, x : Int32, y : Int32, width : Int32, height : Int32, advance : Float32)
Add custom character mapping
base_size
Sourcebase_size=(base_size : Int32)
Sourcedraw_scaled(text : String, x : Float32, y : Float32, scale : Float32, color : RL::Color = RL::WHITE)
Draw text with scale
glyphs
Sourceglyphs=(glyphs : Hash(Char, Glyph))
Sourceline_height
Sourceline_height=(line_height : Int32)
Sourceline_spacing
Sourceline_spacing=(line_spacing : Float32)
Source