Paint paragraph glyphs in the route-D display list

This commit is contained in:
gloamxun committed 2026-10-20 13:42:58 +08:00
1 parent d07ff59d31
commit 38bacdfbd5
4 files changed
+271 -193

No files matched your search

+2
View File
@@ -247,3 +247,5 @@ v1 remains the production renderer; the route-D core is additive and tested inde
`\mathstrut` is a zero-width strut with 7pt height and 2pt depth.
M3 painter prototype: `Page::display_list()` / `Halign::display_list()` produce absolute text and rule primitives, and `DisplayList::to_svg()` writes a standalone SVG. Paragraph text and math are not yet painted.
Paragraph painter: `Unit::paragraph` now stores `VerticalItem::Paragraph`, and `Page::display_list()` paints each line's `HorizontalBox` characters at their line advance. Boxes created by hyphenation carry `-`; justification is approximated by item widths.