mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-25 10:46:50 -06:00
Opening a .designcraft or .idml file from disk (file.open, file.openIdml, book chapters, recovered documents) loads the fonts in the "Document Fonts" folder beside it. Their faces come before installed faces of the same family and style. The files are untrusted: at most 200 are read, 256 MB each (full CJK collections fit) and 512 MB in all; files over a limit by their listed length are skipped unread, and damaged, oversized and surplus files are listed in the open result's warnings. Document fonts stay loaded for the session (the font database is process-wide). Faces record their source (bundled, installed file, document file, memory); font.list reports it. File > Package copies the font files the document uses into the package's Document Fonts folder unless OS/2 fsType restricts the licence, and the report says which fonts weren't copied and why.
39 lines
1.2 KiB
TOML
39 lines
1.2 KiB
TOML
[package]
|
|
name = "designcraft-engine"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "DesignCraft engine: session, documents, history, selection, command registry, tool hosting"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
designcraft-images = { workspace = true }
|
|
designcraft-geom = { workspace = true }
|
|
designcraft-color = { workspace = true }
|
|
designcraft-doc = { workspace = true }
|
|
designcraft-fonts = { workspace = true }
|
|
designcraft-compose = { workspace = true }
|
|
designcraft-render = { workspace = true }
|
|
designcraft-format = { workspace = true }
|
|
designcraft-epub = { workspace = true }
|
|
designcraft-textimport = { workspace = true }
|
|
designcraft-pdf = { workspace = true }
|
|
designcraft-tools = { workspace = true }
|
|
designcraft-idml = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
regex = { workspace = true }
|
|
quick-xml = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
designcraft-fonts = { workspace = true, features = ["testing"] }
|
|
zip = { workspace = true }
|
|
hayro-syntax = "0.7.2"
|
|
hayro-interpret = { version = "0.7.0", default-features = false, features = ["embed-fonts"] }
|
|
hayro-cmap = "0.1"
|
|
kurbo = { workspace = true }
|