Scale inline math proportionally
Inline math in a 12pt paragraph kept 10pt glyphs because paint_math advances with 10pt metrics. Paint the math atom into a temporary display list at the 10pt baseline and scale that list as a unit (text sizes and positions, rule widths/heights, line endpoints) to the paragraph size before translating it to the baseline. The box no longer pins its size, so a scaled math glyph now reports font-size 12.000 in a 12pt paragraph. The twelve-point test now also asserts that an italic math glyph is rendered at the paragraph size; the sized-paragraph test still expects a math box and no literal dollars.
This commit is contained in:
1 parent
b3fbbc8dda
commit
88a03ec1a1
5 files changed
+62
-17
No files matched your search
@@ -49,7 +49,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
|
||||
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
|
||||
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
|
||||
PDF opt-in with `?engine=route-d`; flat `/preview` and project previews now
|
||||
prefer route-D with a v1 fallback). 1012 workspace tests are green and no oracle
|
||||
prefer route-D with a v1 fallback). 1013 workspace tests are green and no oracle
|
||||
fixture is ignored. Preview JSON also carries a `warnings` array naming
|
||||
environments route-D cannot lay out and control words that survived layout, so
|
||||
unsupported source is reported instead of being silently typeset.
|
||||
|
||||
Reference in new issue
Block a user