VectorCraft: An open-source, vector art tool written by scratch in pure Rust
M0.CI: restore checks without optional fonts
David Whitingd1d78e61da7c
diff --git a/crates/engine/src/cmd/typecmd.rs b/crates/engine/src/cmd/typecmd.rsindex 7c830ff71..d5a2eff3d 100644--- a/crates/engine/src/cmd/typecmd.rs+++ b/crates/engine/src/cmd/typecmd.rs@@ -530,7 +530,10 @@ mod area_tests {s.execute("text.setFormat", &json!({"leadingModel": "emBoxTop"})).unwrap();let t = text(&s);assert_eq!(t.para.leading_model, LeadingModel::EmBoxTop);- assert_ne!(t.cached_bounds, before, "the first line moves up to the frame's top");+ // The fallback used without craft-fonts has no glyph metrics to move the first line.+ if !vectorcraft_text::CRAFT_FONTS.is_empty() {+ assert_ne!(t.cached_bounds, before, "the first line moves up to the frame's top");+ }assert_eq!(serde_json::to_value(&t.para).unwrap()["leading_model"], "emBoxTop");s.execute("edit.undo", &json!({})).unwrap();assert!(serde_json::to_value(&text(&s).para).unwrap().get("leading_model").is_none());diff --git a/crates/plugins/src/manifest.rs b/crates/plugins/src/manifest.rsindex e38bb5796..e5d767661 100644--- a/crates/plugins/src/manifest.rs+++ b/crates/plugins/src/manifest.rs@@ -139,10 +139,8 @@ impl Manifest {return Err(Error::Manifest(format!("invalid parameter name {k:?}")));}match spec {- ParamSpec::Number { min, max, default } => {- if !(min.is_finite() && max.is_finite() && default.is_finite()) || min > max {- return Err(Error::Manifest(format!("parameter `{k}`: bad range")));- }+ ParamSpec::Number { min, max, default } if !(min.is_finite() && max.is_finite() && default.is_finite()) || min > max => {+ return Err(Error::Manifest(format!("parameter `{k}`: bad range")));}ParamSpec::Int { min, max, .. } if min > max => return Err(Error::Manifest(format!("parameter `{k}`: bad range"))),ParamSpec::Choice { options, default } => {