Skip to main content

Crate oxipdf_theme

Crate oxipdf_theme 

Source
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

§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.0

Load with Theme::from_toml() or Theme::load().

Structs§

Theme
A mapping from SemanticRole to ResolvedStyle.
ThemedBuilder
Convenience wrapper around StyledTreeBuilder that auto-applies theme styles.

Enums§

ThemeLoadError
Error loading or parsing a theme file.