oxml-layout
Backend-neutral layout frames, paths, paints, text fragments, font discovery, and deterministic bundled fonts.
Use it when
Use this crate when producing or consuming positioned layout output independently of DOCX or PPTX. Most applications should use a document facade and renderer instead.
Relationship
rdocx-layout and rpptx-render produce this model. oxml-pdf consumes it.
Consumers that walk PageFrame::elements must recurse through
PositionedElement::MarkedContent and visit its MarkedContent::children, or
use oxml_layout::walk to perform recursive traversal. Because
PositionedElement is non-exhaustive, a wildcard arm that ignores a new
container can otherwise omit visible page content.
Example
use Color;
let accent = from_hex;
assert_eq!;
Add oxml-layout = { version = "0.9.0", default-features = false } to your dependencies. Enable the default system-fonts feature only when host font discovery is intended.