1[package]
2name = "fontdb"
3version = "0.16.2"
4authors = ["Yevhenii Reizner <razrfalcon@gmail.com>"]
5edition = "2018"
6description = "A simple, in-memory font database with CSS-like queries."
7documentation = "https://docs.rs/fontdb/"
8readme = "README.md"
9repository = "https://github.com/RazrFalcon/fontdb"
10license = "MIT"
11keywords = ["font", "db", "css", "truetype", "ttf"]
12categories = ["text-processing"]
13rust-version = "1.60"
14
15[dependencies]
16log = "0.4"
17memmap2 = { version = "0.9", optional = true }
18slotmap = { version = "1.0.6", default-features = false }
19tinyvec = { version = "1.6.0", features = ["alloc"] }
20
21[dependencies.ttf-parser]
22version = "0.20"
23default-features = false
24features = ["opentype-layout", "apple-layout", "variable-fonts", "glyph-names"]
25
26[target.'cfg(all(unix, not(any(target_os = "macos", target_os = "android"))))'.dependencies]
27fontconfig-parser = { version = "0.5", optional = true, default-features = false }
28
29[dev-dependencies]
30env_logger = { version = "0.10", default-features = false }
31
32[features]
33default = ["std", "fs", "memmap", "fontconfig"]
34std = ["ttf-parser/std"]
35# Allows local filesystem interactions.
36fs = ["std"]
37# Allows font files memory mapping, greatly improves performance.
38memmap = ["fs", "memmap2"]
39# Enables minimal fontconfig support on Linux.
40# Must be enabled for NixOS, otherwise no fonts will be loaded.
41fontconfig = ["fontconfig-parser", "fs"]
42