mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 14:20:24 +00:00
The three envelope ink tests set "Type" in the default family and unwrapped ink_bounds(). Without bundled fonts, craft-fonts or system fonts (vectorcraft-effects' tests on a bare Linux host), no face draws and the effects test panicked at the unwrap. Each test now adds the Heighttest Sans face built from the bundled Source Sans 3 (test-fonts feature, now also on vectorcraft-effects' dev-dependency), sets the text in it, and computes the expected box from the layout's glyph outlines. It checks that envelope_ink gives that box as well as the before and after registration boxes, so a change to the registered measure fails the test.