Expand description
oxipdf-theme — Semantic role → resolved style theme system.
Maps SemanticRole variants to ResolvedStyle values, providing a
reusable appearance layer between semantic markup and the oxipdf engine.
§Built-in themes
Theme::default()— Clean sans-serif document (Noto Sans)Theme::academic()— Serif-based academic document (Noto Serif)Theme::technical()— Monospace-heavy technical document
§Custom themes via TOML
[theme]
name = "My Theme"
base_fonts = ["Noto Sans"]
mono_fonts = ["Noto Sans Mono"]
[paragraph]
font_size = 11.0
line_height_multiplier = 1.4
margin_bottom = 6.0Load with Theme::from_toml() or Theme::load().
Structs§
- Theme
- A mapping from
SemanticRoletoResolvedStyle. - Themed
Builder - Convenience wrapper around
StyledTreeBuilderthat auto-applies theme styles.
Enums§
- Theme
Load Error - Error loading or parsing a theme file.