struct EE::Graphics::Glyph

Overview

#include <font.hpp>

struct Glyph {
    // fields

    Float advance { 0 };
    Rectf bounds;
    Rect textureRect;
    Sizef size;
    int lsbDelta { 0 };
    int rsbDelta { 0 };
    GlyphRenderMode renderMode { GlyphRenderMode::Mask };
    Font* font { nullptr };
};

Detailed Documentation

Fields

Float advance { 0 }

Offset to move horizontally to the next character.

Rectf bounds

Bounding rectangle of the glyph, in coordinates relative to the baseline.

Rect textureRect

Texture coordinates of the glyph inside the font’s texture.

Sizef size

The glyph bitmap size on screen.

int lsbDelta { 0 }

Left offset after forced autohint. Internally used by getKerning()

int rsbDelta { 0 }

Right offset after forced autohint. Internally used by getKerning()

GlyphRenderMode renderMode { GlyphRenderMode::Mask }

Atlas texel compositing mode.

Font* font { nullptr }

The glyph font.