documents and typography: SVG sizes and frames read with the system's fonts, as drawn
CI / platforms (windows-latest) (push) Failing after 9s
CI / site (push) Successful in 23s
CI / crate (push) Failing after 12m18s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-12 11:55:54 -04:00
1 parent 8234fcdeb2
commit 50a59d2620
3 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -180,7 +180,7 @@ fn guarded<T>(lay: impl FnOnce() -> T) -> Result<T, MathError> {
/// `svg` reframed around its ink and layout box.
fn framed(svg: &str, width: f32, height: f32) -> Result<(String, Size<Pixels>), MathError> {
let tree = usvg::Tree::from_data(svg.as_bytes(), &usvg::Options::default())
let tree = usvg::Tree::from_data(svg.as_bytes(), &crate::documents::svg_options())
.map_err(|error| MathError::said(format!("{error}")))?;
let ink = tree.root().abs_stroke_bounding_box();
let left = ink.left().min(0.0);