Document the math metric mismatch

This commit is contained in:
gloamxun committed 2026-10-29 00:47:28 +08:00
1 parent e34558efb8
commit bf4e758fba
1 file changed
+17
+17
View File
@@ -233,3 +233,20 @@ The existing `display_sum_limits_sit_close_to_the_operator` test still passes,
and the rendered equation has no rule/limit collision. Fidelity moves
0.8959 -> 0.8999. The fraction rule is still about 31 pt shorter than TeX,
which is a separate horizontal-density gap.
## Math metric mismatch (diagnostic)
The math face's Greek width currently falls back to CMR Roman, and the display
math renderer paints with `Cmr10Metrics::new()` (Roman):
```text
Roman alpha width = 329199 sp
CMMI alpha width = 419235 sp
```
A trial that added CMMI Greek widths and painted `VerticalItem::Math` with
`Cmr10Metrics::Math` increased the fraction rule only from 191.5 to 193.7 pt
(TeX 223.2 pt) and introduced visible `α (t)` gaps. It was reverted. A correct
fix must move layout and paint onto the same CMMI advance/spacing model; merely
swapping the metric source is not safe.