pub struct Fonts<'a> {
pub sources: Vec<C8FontSource<Box<dyn RangedSource + 'a>>>,
pub roles: Option<C8PageFonts>,
pub embedding: FontEmbedding,
pub glyph_aliases: Vec<NativeFontGlyphAlias>,
pub symbol_glyphs: Vec<NativeSymbolGlyph>,
pub symbol_font: Option<SymbolFontIdentity>,
pub decoration_glyphs: Vec<NativeDecorationGlyph>,
pub decoration_font: Option<SymbolFontIdentity>,
}Expand description
Font resources for native HN/C8 text.
Up to eleven ranged resources and their collection faces; roles index
into sources, and several roles may share one resource. Absent optional
roles and unmapped characters follow the C8PageFonts fallback rule.
Fields§
§sources: Vec<C8FontSource<Box<dyn RangedSource + 'a>>>§roles: Option<C8PageFonts>Which source draws each role; sources without roles are refused.
embedding: FontEmbeddingUsed program preservation; defaults to compact subsets.
glyph_aliases: Vec<NativeFontGlyphAlias>Ordinary glyph aliases, strictly sorted by source index and character.
symbol_glyphs: Vec<NativeSymbolGlyph>Explicit source glyphs for HN-B mode-0 symbol codes, drawn from the
symbols role without fallback. Semantic text is unchanged. Native
documents of another profile refuse a non-empty map; like the fonts,
it is unread for documents routed to image composition.
symbol_font: Option<SymbolFontIdentity>The font symbol_glyphs was measured on; a different symbols font
is refused. Requires a nonempty map.
decoration_glyphs: Vec<NativeDecorationGlyph>Explicit nonsemantic decoration aliases for native mode 2.
decoration_font: Option<SymbolFontIdentity>Expected decoration font identity; requires a nonempty decoration map.