Font

Variables

Name

Type

Description

image

ImageFormat*

The pointer to the image containing the glyphs.

imageSamplerFilter

ImageSamplerFilter

The sampler filter to use when drawing a text with this font.

height

float

The pixel height of the font.

topLeft

Math::vec2

The top left of the global glyphs’ bounding box.

bottomRight

Math::vec2

The bottom right of the global glyphs’ bounding box.

glyphs

std::unordered_map<char, FontGlyph>

A map containing information about each glyph.