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

One registered embedded @font-face typeface (#109). More...

#include <reflow_types.h>

Data Fields

const uint8_t * blob
 TTF/OTF bytes; caller-owned, outlives engine.
size_t len
 Length of blob, bytes.
uint8_t css_face_idx
 @font-face table index this blob satisfies.
uint8_t pad8 [k_reflow_face_pad8]
 Padding to an 8-byte stride.

Detailed Description

One registered embedded @font-face typeface (#109).

Maps a parsed @font-face table entry (css_face_idx, the value ra8_css_match_face returns) to its caller-owned TTF/OTF bytes. The blob outlives the engine (it points into the resident EPUB buffer – zero-copy). The engine holds up to k_reflow_max_faces of these; the render pass builds one stbtt_fontinfo per registered face plus the default at index 0.

See also
reflow_register_face()

Definition at line 427 of file reflow_types.h.

Field Documentation

◆ blob

const uint8_t* reflow_face_t::blob

TTF/OTF bytes; caller-owned, outlives engine.

Definition at line 428 of file reflow_types.h.

Referenced by internal_init_faces(), and reflow_register_face().

◆ css_face_idx

uint8_t reflow_face_t::css_face_idx

@font-face table index this blob satisfies.

Definition at line 430 of file reflow_types.h.

Referenced by priv_reflow_tok_resolve_face_slot(), and reflow_register_face().

◆ len

size_t reflow_face_t::len

Length of blob, bytes.

Definition at line 429 of file reflow_types.h.

Referenced by internal_init_faces(), and reflow_register_face().

◆ pad8

uint8_t reflow_face_t::pad8[k_reflow_face_pad8]

Padding to an 8-byte stride.

Definition at line 431 of file reflow_types.h.


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