ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_glyph_key_t Struct Reference

Identifies one rendered glyph. More...

#include <ra8_glyph_atlas.h>

Data Fields

uint32_t glyph_id
 Font glyph index.
uint16_t face_id
 Font face identifier.
uint16_t size_px
 Pixel size.
uint16_t mode
 Render mode (AA / mono / hinting variant).
uint16_t reserved
 Reserved; keep zero (padding-free byte-wise key).

Detailed Description

Identifies one rendered glyph.

Compared byte-wise by the underlying ::ra8_keycache, so the struct must be fully initialised before use: zero-fill it (e.g. = {}) before setting the fields so the reserved padding never carries indeterminate bytes. The layout is padding-free (12 bytes).

Since
0.1.0

Definition at line 64 of file ra8_glyph_atlas.h.

Field Documentation

◆ face_id

uint16_t ra8_glyph_key_t::face_id

Font face identifier.

Definition at line 66 of file ra8_glyph_atlas.h.

Referenced by internal_glyph_render_cached().

◆ glyph_id

uint32_t ra8_glyph_key_t::glyph_id

Font glyph index.

Definition at line 65 of file ra8_glyph_atlas.h.

Referenced by internal_atlas_render_glyph(), and internal_glyph_render_cached().

◆ mode

uint16_t ra8_glyph_key_t::mode

Render mode (AA / mono / hinting variant).

Definition at line 68 of file ra8_glyph_atlas.h.

Referenced by internal_glyph_render_cached().

◆ reserved

uint16_t ra8_glyph_key_t::reserved

Reserved; keep zero (padding-free byte-wise key).

Definition at line 69 of file ra8_glyph_atlas.h.

◆ size_px

uint16_t ra8_glyph_key_t::size_px

Pixel size.

Definition at line 67 of file ra8_glyph_atlas.h.

Referenced by internal_glyph_render_cached().


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