RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_shaped_glyph_t Struct Reference

One glyph. More...

#include <shaper.h>

Data Fields

uint32_t glyph
uint32_t codepoint
size_t cluster
size_t end
int advance_x
int advance_y
int offset_x
int offset_y

Detailed Description

One glyph.

glyph is the face glyph index (0 missing); codepoint identifies an optional font image (0 for a host-generated glyph without an image). [cluster,end) is a nonempty UTF-8 byte cluster. Multiple glyphs may share a cluster. All geometry is integer device pixels; advances are nonnegative. Glyphs are in logical cluster order even for RTL; the layout reverses cluster groups, never the glyphs inside a group. Host adapters must convert their native units and output convention accordingly, including L4 mirroring for RTL. Offsets are from the pen; codepoint is a Unicode scalar or 0.

Field Documentation

◆ glyph

uint32_t rmgui_shaped_glyph_t::glyph

◆ codepoint

uint32_t rmgui_shaped_glyph_t::codepoint

◆ cluster

size_t rmgui_shaped_glyph_t::cluster

◆ end

size_t rmgui_shaped_glyph_t::end

◆ advance_x

int rmgui_shaped_glyph_t::advance_x

◆ advance_y

int rmgui_shaped_glyph_t::advance_y

◆ offset_x

int rmgui_shaped_glyph_t::offset_x

◆ offset_y

int rmgui_shaped_glyph_t::offset_y

The documentation for this struct was generated from the following file: