Skip to main content

Module debug

Module debug 

Source
Expand description

Optional geometry and source tracing for layout inspection.

Coordinates are PDF points measured rightward/downward from the page top left. Text rectangles use shaped advances and font ascent/descent, rather than glyph ink outlines. Container rectangles enclose emitted content on each page; they do not include trailing paragraph space or blank raw lines.

Structs§

Block
Per-page union of the content emitted by a source block and its children.
Image
One final image placement, without decoded pixel bytes or asset paths.
Line
One committed line, including list/bibliography markers and font fallback.
Page
Final page geometry, source blocks, text lines, and image placements.
PageTrace 🔒
Recorder 🔒
Rect
A rectangle measured in points from the page’s top-left corner.
Report
Versioned, deterministic geometry report from an explicitly traced layout.
Run
One final text run, indexed into its page’s run array.
Source
The semantic block responsible for a placement. Offsets are UTF-8 bytes. File names are display strings; non-UTF-8 paths use replacement characters.