mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 09:39:52 +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.
31 lines
1.2 KiB
TOML
31 lines
1.2 KiB
TOML
[package]
|
||
name = "vectorcraft-effects"
|
||
version.workspace = true
|
||
edition.workspace = true
|
||
license.workspace = true
|
||
description = "VectorCraft live effects evaluated to geometry"
|
||
|
||
[lints]
|
||
workspace = true
|
||
|
||
[dependencies]
|
||
vectorcraft-geom = { workspace = true }
|
||
vectorcraft-three-d = { workspace = true }
|
||
vectorcraft-doc = { workspace = true }
|
||
vectorcraft-pathops = { workspace = true }
|
||
vectorcraft-text = { workspace = true }
|
||
vectorcraft-plugins = { workspace = true }
|
||
image = { workspace = true }
|
||
kurbo = { workspace = true }
|
||
# Effect › SVG Filters draws its filters with resvg (MIT OR Apache-2.0), at the usvg version the
|
||
# workspace reads SVG with; raster-images decodes the object's pixels it hands the filter as a PNG.
|
||
resvg = { version = "0.48", default-features = false, features = ["raster-images"] }
|
||
# The number lists of filter attributes, read as usvg reads them (MIT OR Apache-2.0; already used by usvg).
|
||
svgtypes = "0.16"
|
||
serde_json = { workspace = true }
|
||
|
||
[dev-dependencies]
|
||
vectorcraft-color = { workspace = true }
|
||
# A face built in code from the bundled Source Sans 3 (no font file is committed).
|
||
vectorcraft-text = { workspace = true, features = ["test-fonts"] }
|