Skip to content

ludus::text::GlyphBitmap

Ludus Wiki · API overview · Browse API

Struct

Rasterized glyph coverage.
The bitmap is top-down, tightly packed (Width is not a stride) unsigned R8 coverage normalized to 0..255. Zero- area glyphs (e.g. space) report valid metrics with Width==Height==0 and empty Coverage.

Declared in modules/text/include/ludus/text/font_system.h

#include <ludus/text/font_system.h>
struct ludus::text::GlyphBitmap final

Fields

GlyphId

uint32 ludus::text::GlyphBitmap::GlyphId = 0

Related types: uint32

Declared in modules/text/include/ludus/text/font_system.h

Width

uint32 ludus::text::GlyphBitmap::Width = 0
texels

Related types: uint32

Declared in modules/text/include/ludus/text/font_system.h

Height

uint32 ludus::text::GlyphBitmap::Height = 0
texels

Related types: uint32

Declared in modules/text/include/ludus/text/font_system.h

BearingLeft

int32 ludus::text::GlyphBitmap::BearingLeft = 0
integer pixels, pen-relative

Related types: int32

Declared in modules/text/include/ludus/text/font_system.h

BearingTop

int32 ludus::text::GlyphBitmap::BearingTop = 0
integer pixels, pen-relative (above baseline +)

Related types: int32

Declared in modules/text/include/ludus/text/font_system.h

Coverage

std::span<const ludus::foundation::uint8> ludus::text::GlyphBitmap::Coverage
size == Width*Height

Related types: ludus::foundation::uint8

Declared in modules/text/include/ludus/text/font_system.h