M9.1: Character panel parity (V/H scale, baseline shift, stroke order, small caps); layer.setText keys for them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-01 22:03:37 -04:00
co-authored by Claude Opus 5.5
parent 5a308a6964
commit fb6b3aa680
3 changed files with 47 additions and 11 deletions
+3
View File
@@ -168,6 +168,9 @@ fn set_text_paragraph_fill_and_leading() {
assert_eq!((d.leading, d.apply_fill, d.apply_stroke), (Some(50.0), false, true));
s.execute("layer.setText", json!({"layer": t, "leading": "auto"})).unwrap();
assert_eq!(doc(&s).leading, None);
s.execute("layer.setText", json!({"layer": t, "hScale": 120, "vScale": 80, "baselineShift": 4, "smallCaps": true, "strokeOverFill": true})).unwrap();
let d = doc(&s);
assert_eq!((d.h_scale, d.v_scale, d.baseline_shift, d.small_caps, d.stroke_over_fill), (120.0, 80.0, 4.0, true, true));
}
#[test]