forked from 1b-agent/opencadstudio-upstream
review(#1631): drop the repeated ROMANS table; tests follow the new advances
- The ROMANS advance list was pasted twice; once is enough. - The stroke-font golden checksum follows TXT's new advances (segment and vertex counts unchanged). - The tolerance compartment test checks ink against pen only for symbol cells: text fonts now advance by the reference's pen, not their ink. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c47f6d540b
commit
3769bb59e3
2 files changed
+16
-26
No files matched your search
@@ -1051,12 +1051,16 @@ mod tests {
|
||||
(got - (pen - spacing)).abs() < 1e-3,
|
||||
"{src:?}: content {got} should be pen {pen} less one {spacing} gap"
|
||||
);
|
||||
let expected = ink + (cell.len() as f32 - 1.0) * spacing;
|
||||
assert!(
|
||||
(got - expected).abs() < 1e-3,
|
||||
"{src:?}: content {got} should be ink {ink} plus {} inter-run gaps",
|
||||
cell.len() - 1
|
||||
);
|
||||
// Ink and pen agree only where glyphs advance by their own ink;
|
||||
// the text fonts keep the advances of the fonts they stand in for.
|
||||
if cell.iter().all(|run| run.font == SYMBOL_FONT) {
|
||||
let expected = ink + (cell.len() as f32 - 1.0) * spacing;
|
||||
assert!(
|
||||
(got - expected).abs() < 1e-3,
|
||||
"{src:?}: content {got} should be ink {ink} plus {} inter-run gaps",
|
||||
cell.len() - 1
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user