diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-01 00:01:17 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-01 00:10:54 +0200 |
| commit | 06dbac6efd98be5a015023c88ed3dbd9a35a4594 (patch) | |
| tree | bb3c75230098bf71d1ac23bbe7184e4ae7a6cef2 /Cargo.toml | |
| parent | 064954cf9edbb0201b6184e69978f86e93741008 (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.toml | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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"] |
