1[package]
2name = "font-kit"
3version = "0.14.2"
4authors = ["Patrick Walton <pcwalton@mimiga.net>"]
5description = "A cross-platform font loading library"
6license = "MIT OR Apache-2.0"
7readme = "README.md"
8repository = "https://github.com/servo/font-kit"
9homepage = "https://github.com/servo/font-kit"
10exclude = ["resources/**"]
11edition = "2018"
12rust-version = "1.77"
13
14[features]
15default = ["source"]
16loader-freetype = ["freetype"]
17loader-freetype-default = ["loader-freetype"]
18source-fontconfig = ["yeslogic-fontconfig-sys"]
19source-fontconfig-dlopen = ["yeslogic-fontconfig-sys/dlopen"]
20source-fontconfig-default = ["source-fontconfig"]
21source = []
22
23[dependencies]
24bitflags = "2.4"
25byteorder = "1.2"
26float-ord = "0.3"
27lazy_static = "1.1"
28libc = "0.2"
29log = "0.4.4"
30pathfinder_geometry = "0.5"
31pathfinder_simd = "0.5.4"
32
33[dependencies.freetype]
34version = "0.7"
35optional = true
36
37[dependencies.yeslogic-fontconfig-sys]
38version = "6.0"
39optional = true
40
41[dev-dependencies]
42clap = "4"
43colored = "2"
44pbr = "1.0"
45prettytable-rs = "0.10"
46
47[target.'cfg(target_family = "windows")'.dependencies]
48dwrote = { version = "0.11", default-features = false }
49
50[target.'cfg(target_family = "windows")'.dependencies.winapi]
51version = "0.3"
52features = ["dwrite", "minwindef", "sysinfoapi", "winbase", "winnt"]
53
54[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
55core-foundation = "0.9"
56core-graphics = "0.23"
57core-text = "20.1.0"
58
59[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios")))'.dependencies]
60freetype-sys = "0.20"
61
62[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32", target_env = "ohos")))'.dependencies]
63yeslogic-fontconfig-sys = "6.0"
64
65[target.'cfg(not(any(target_arch = "wasm32", target_family = "windows", target_os = "android", target_env = "ohos")))'.dependencies]
66dirs = "5.0"
67
68[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
69walkdir = "2.1"
70