mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 08:13:22 +00:00
Rule 10: every storytold/craft-libs crate is at the same rev, now 205042e406b630cda653990649264a78fea6296b, the merge of #3136 on craft-libs main. That rev still skips a form already on the drawing stack (ISO 32000-2 §8.10.1) but no longer reports it as ContentTruncated, so a 200-shape knockout-mask PDF imports completely. Also moves the leftover per-crate pins of craft-font-catalog and craft-web-api onto the same rev.
65 lines
3.2 KiB
TOML
65 lines
3.2 KiB
TOML
[package]
|
|
name = "vectorcraft-text"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft text: font database, shaping, layout, glyph outlines"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
# The shared font catalog from craft-libs main (it has the outline, bidi and caret helpers used here).
|
|
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "205042e406b630cda653990649264a78fea6296b", default-features = false }
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
kurbo = { workspace = true }
|
|
skrifa = { workspace = true }
|
|
harfrust = { workspace = true }
|
|
log = { workspace = true }
|
|
# Font subsets for embedding (SVG @font-face); MIT OR Apache-2.0, already used by the PDF writer
|
|
# (which turns on `variable-fonts` too: named instances of variable fonts are instanced).
|
|
subsetter = { version = "0.2", default-features = false, features = ["variable-fonts"] }
|
|
unicode-bidi = "0.3.18"
|
|
unicode-general-category = "1"
|
|
unicode-script = "0.5"
|
|
# Word boundaries in scripts written without spaces between words (Thai, Lao, Khmer, Myanmar), where
|
|
# lines may break: ICU4X's line segmenter (Unicode-3.0, as icu_properties already in the build),
|
|
# with its dictionaries on the desktop and its far smaller LSTM models on the web.
|
|
icu_segmenter = "2.3"
|
|
# Grapheme clusters (a Thai consonant with its vowel and tone marks, an accented letter, an emoji
|
|
# sequence) for caret movement; MIT OR Apache-2.0, already in the build.
|
|
unicode-segmentation = "1.13"
|
|
# Hyphenation patterns and rules for German, Polish, Portuguese, Italian, Bulgarian, Turkish and
|
|
# Russian; MIT OR Apache-2.0, already in the build through the engine's spell checking.
|
|
craft-proof = { workspace = true }
|
|
# Composes a decomposed Cyrillic word (`и` + U+0306 is `й`) before its script check; MIT OR
|
|
# Apache-2.0, already in the build through craft-proof.
|
|
unicode-normalization = "0.1.26"
|
|
# Draws COLR colour glyphs whose paints documents have no form for (sweep gradients, compositing
|
|
# modes) into images: the canvas's renderer, already in the build.
|
|
vello_cpu = { workspace = true }
|
|
# Builds the fonts files carried for their type (`file_font`: a PDF's embedded fonts, from the
|
|
# glyphs it drew) and a small variable font for tests (`test_fonts`; no font file is committed).
|
|
# MIT OR Apache-2.0, already in the build through subsetter.
|
|
write-fonts = "0.48"
|
|
|
|
[dev-dependencies]
|
|
serde_json = { workspace = true }
|
|
|
|
[features]
|
|
default = ["bundled-fonts"]
|
|
# The OFL fonts of `assets/fonts` (Source Sans 3, Source Serif 4, Inter, JetBrains Mono) compiled
|
|
# in: 3.4 MB of the binary. Off, the font database starts without them (craft-fonts and system
|
|
# fonts are unaffected), for an embedder that adds its own with `FontDb::add_font` and would ship
|
|
# these twice. vectorcraft-engine turns it on by default (its `bundled-fonts` feature), and
|
|
# vectorcraft-ui-egui and vectorcraft-mcp by default through the engine.
|
|
bundled-fonts = []
|
|
# `vectorcraft_text::test_fonts` for other crates' tests (dev-dependencies only).
|
|
test-fonts = []
|
|
|
|
# Fonts registered with Windows outside its font folders ("install as shortcut", installers);
|
|
# MIT OR Apache-2.0, a safe wrapper of the registry API from the windows-rs project.
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-registry = "0.6"
|