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

One parsed @font-face rule: family + weight/style + src href. More...

#include <reflow_css.h>

Data Fields

uint16_t family_off
 font-family name slice offset.
uint16_t family_len
 font-family name slice length.
uint16_t src_off
 src href slice offset.
uint16_t src_len
 src href slice length.
uint8_t weight_bold
 1 = this face is the bold weight.
uint8_t style_italic
 1 = this face is italic / oblique.
uint16_t pad
 Padding.

Detailed Description

One parsed @font-face rule: family + weight/style + src href.

family/src are slices into the owning ra8_css_sheet_t names pool (the src is the de-url()-wrapped manifest href, e.g. fonts/Body.ttf). weight_bold / style_italic capture which face this is so ra8_css_match_face can pick the right one for a run's emphasis. The reflow-side loading of that href is #109's remainder, not this module.

Definition at line 195 of file reflow_css.h.

Field Documentation

◆ family_len

uint16_t ra8_css_fontface_t::family_len

font-family name slice length.

Definition at line 197 of file reflow_css.h.

Referenced by internal_face_apply(), internal_family_eq(), and internal_parse_fontface().

◆ family_off

uint16_t ra8_css_fontface_t::family_off

font-family name slice offset.

Definition at line 196 of file reflow_css.h.

Referenced by internal_face_apply(), and internal_family_eq().

◆ pad

uint16_t ra8_css_fontface_t::pad

Padding.

Definition at line 202 of file reflow_css.h.

◆ src_len

uint16_t ra8_css_fontface_t::src_len

src href slice length.

Definition at line 199 of file reflow_css.h.

Referenced by internal_face_apply(), internal_parse_fontface(), and ra8_css_face_src().

◆ src_off

uint16_t ra8_css_fontface_t::src_off

src href slice offset.

Definition at line 198 of file reflow_css.h.

Referenced by internal_face_apply(), and ra8_css_face_src().

◆ style_italic

uint8_t ra8_css_fontface_t::style_italic

1 = this face is italic / oblique.

Definition at line 201 of file reflow_css.h.

Referenced by internal_face_apply(), and ra8_css_match_face().

◆ weight_bold

uint8_t ra8_css_fontface_t::weight_bold

1 = this face is the bold weight.

Definition at line 200 of file reflow_css.h.

Referenced by internal_face_apply(), and ra8_css_match_face().


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