forked from harfbuzz/ttf-parser
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
31 lines (27 loc) · 1014 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[package]
name = "ttf-parser-capi"
version = "0.15.0"
authors = ["Yevhenii Reizner <[email protected]>"]
license = "MIT"
edition = "2018"
[lib]
name = "ttfparser"
path = "lib.rs"
crate-type = ["cdylib"]
[dependencies]
ttf-parser = { path = "../", default-features = false, features = ["std", "glyph-names"] }
[features]
default = ["variable-fonts"]
# Enables variable fonts support. Adds about 50KiB.
variable-fonts = ["ttf-parser/variable-fonts"]
# Enables heap allocations during gvar table parsing used by Apple's variable fonts.
# Due to the way gvar table is structured, we cannot avoid allocations.
# By default, only up to 32 variable tuples will be allocated on the stack,
# while the spec allows up to 4095. Most variable fonts use 10-20 tuples,
# so our limit is suitable for most of the cases. But if you need full support, you have to
# enable this feature.
gvar-alloc = ["ttf-parser/gvar-alloc"]
# opentype-layout is not supported.
# apple-layout is not supported.
[profile.release]
lto = true