struct Eagle::Font::Glyph

Overview

One character's image in the font atlas, with how far to advance afterwards.

Defined in:

eagle/graphics/font.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(region : Eagle::TextureRegion, advance : Float32, offset : Eagle::Vec2 = Vec2::ZERO) #

Creates a glyph.


Instance Method Detail

def advance : Float32 #

How far to move the pen after this glyph, in pixels.


def offset : Vec2 #

Offset from the pen position to the glyph's top-left corner.


def region : TextureRegion #

Where the glyph sits in the atlas.