struct
Eagle::Font::Glyph
- Eagle::Font::Glyph
- Struct
- Value
- Object
Overview
One character's image in the font atlas, with how far to advance afterwards.
Defined in:
eagle/graphics/font.crConstructors
-
.new(region : Eagle::TextureRegion, advance : Float32, offset : Eagle::Vec2 = Vec2::ZERO)
Creates a glyph.
Instance Method Summary
-
#advance : Float32
How far to move the pen after this glyph, in pixels.
-
#offset : Vec2
Offset from the pen position to the glyph's top-left corner.
-
#region : TextureRegion
Where the glyph sits in the atlas.
Constructor Detail
Creates a glyph.