-
Notifications
You must be signed in to change notification settings - Fork 71
/
Cargo.toml
43 lines (37 loc) · 1.28 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
[package]
name = "ttf-parser-capi"
version = "0.25.1"
authors = [
"Caleb Maclennan <[email protected]>",
"Laurenz Stampfl <[email protected]>",
"Yevhenii Reizner <[email protected]>",
"خالد حسني (Khaled Hosny) <[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.
capi = []
[profile.release]
lto = true
[package.metadata.capi.header]
generation = false
[package.metadata.capi.install.include]
asset = [{ from="ttfparser.h" }]