mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 18:27:02 -06:00
The default `text` features of vello_cpu (glyph runs, through glifo) and usvg (fontdb, harfrust 0.12, skrifa 0.44 and its read-fonts 0.41) build another copy of the font stack into the engine, next to the workspace's skrifa 0.47 and harfrust 0.13. Neither is used: the renderer draws the glyph outlines vectorcraft-text gives it, and SVG import reads <text> from the XML itself and never gives usvg a font (usvg leaves out text it has no font for). - vello_cpu: its default features but `text` (std, png, u8_pipeline), plus f32_pipeline as before. - usvg: `svgz` only, for gzipped SVG images inside an SVG; `text`, `system-fonts`, `memmap-fonts` and `writer` are off. text_layout.rs uses usvg as a reference viewer with a font, so crates/svg turns `text` on as a dev-dependency feature, as crates/pdf does for krilla's `simple-text`. - A test pins `svgz`: SVGZ images, linked or as a data URL, import as vector art. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.3 KiB
TOML
41 lines
1.3 KiB
TOML
[package]
|
|
name = "vectorcraft-svg"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft SVG import and export"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
vectorcraft-effects = { workspace = true }
|
|
vectorcraft-brush = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
kurbo = { workspace = true }
|
|
usvg = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
serde = { workspace = true }
|
|
# Live effect params read from filters.
|
|
serde_json = { workspace = true }
|
|
# SVGZ (gzip, pure-Rust backend: builds for wasm).
|
|
flate2 = { workspace = true }
|
|
image = { workspace = true }
|
|
# Colour / transform / length parsing for the <text> fallback (MIT OR Apache-2.0; already used by usvg).
|
|
svgtypes = "0.16"
|
|
|
|
[dev-dependencies]
|
|
# Reading embedded font subsets back.
|
|
skrifa = { workspace = true }
|
|
# A variable font built in code (no font file is committed).
|
|
vectorcraft-text = { workspace = true, features = ["test-fonts"] }
|
|
resvg = { version = "0.45", default-features = false }
|
|
# usvg as a reference viewer that lays text out in a font (text_layout.rs).
|
|
usvg = { workspace = true, features = ["text"] }
|
|
vectorcraft-testkit = { workspace = true }
|
|
proptest = { workspace = true }
|
|
image = { workspace = true }
|