Compare route-D raster geometry with pdfTeX

This commit is contained in:
gloamxun committed 2026-10-20 23:20:28 +08:00
1 parent ea69301804
commit c2dbf405ab
3 files changed
+146 -2

No files matched your search

+2
View File
@@ -465,6 +465,8 @@ variant for delimiters and large display operators, and builds taller glyphs
from the font's MATH assembly parts. `\\left...\\right` target sizing follows
the assignable TeX parameters `\\delimiterfactor` (default 901) and
`\\delimitershortfall` (default 5pt), including local and global assignments.
Route-D integration can also be checked against a real TeX page: `cargo test -p texrra-tex-core --test route_d` includes `route_d_page_matches_pdftex_raster_geometry`, which renders the route-D PDF and a pdfTeX page at the same geometry, rasterizes both with `pdftoppm`, and compares ink line and edge positions. It is skipped when `pdflatex`/`pdftoppm` are unavailable.
These glyphs are rasterized at
600 dpi and shared by PDF and SVG. Ordinary math atom glyphs are rasterized from
the selected font face at the same resolution, so PDF and SVG paint the same