summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-01 00:01:17 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-01 00:10:54 +0200
commit06dbac6efd98be5a015023c88ed3dbd9a35a4594 (patch)
treebb3c75230098bf71d1ac23bbe7184e4ae7a6cef2 /Cargo.toml
parent064954cf9edbb0201b6184e69978f86e93741008 (diff)
Port font handling to fontdock and ttf-parser 🛳
- Use fontdock for indexing fonts and querying - Typst binary now automatically indexes and uses system fonts in addition to a fixed font folder! - Removes subsetting support for now (was half-finished anyways, plan is to use harfbuzz for subsetting in the future) - Adds font width configuration support
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml11
1 files changed, 6 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index d4552e3a..2d2629ca 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,27 +5,28 @@ authors = ["Laurenz Mädje <laurmaedje@gmail.com>"]
edition = "2018"
[dependencies]
-toddle = { path = "../toddle", features = ["query"], default-features = false }
+fontdock = { path = "../fontdock", features = ["serialize"] }
tide = { path = "../tide" }
byteorder = "1"
smallvec = "1"
unicode-xid = "0.2"
async-trait = "0.1"
+ttf-parser = "0.8.2"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", optional = true }
futures-executor = { version = "0.3", optional = true }
[features]
-default = ["fs-provider", "futures-executor", "serde_json"]
-fs-provider = ["toddle/fs-provider"]
+default = ["fs", "futures-executor", "serde_json"]
+fs = ["fontdock/fs"]
[[bin]]
name = "typst"
path = "src/bin/main.rs"
-required-features = ["fs-provider", "futures-executor"]
+required-features = ["futures-executor"]
[[test]]
name = "typeset"
path = "tests/src/typeset.rs"
harness = false
-required-features = ["fs-provider", "futures-executor", "serde_json"]
+required-features = ["futures-executor", "serde_json"]