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