Skip to main content

Crate fleuron

Crate fleuron 

Source
Expand description

fleuron: paged-media layout for book-shaped documents.

The pipeline is one-way:

content tree + style tree ─► box tree ─► line layout ─► fragmentation ─► pages

Modules§

content
The content tree: semantic input.
fonts
The font registry: font bytes in, font_ids out.
images
Image sizing, and the contour a sheet asks to be traced.
layout
Layout: box construction, inline layout, fragmentation.
linebox
The line box model: how tall a line is and where its baseline sits.
lines
Line layout: text in, broken lines out.
pages
Page output: the display structure.
pdf
PDF export: display structure in, PDF bytes out.
session
A retained pipeline: every stage kept, and only what an edit changed run again.
style
The style tree: resolved styling.
wire
The wire: a display structure as bytes, with a version in front of it.

Structs§

LayoutOutput
Everything the engine produces for one run: pages plus diagnostics.
Warning
Non-fatal problems surfaced during style compilation, layout, or fragmentation: unsupported CSS, missing fonts, low effective DPI…