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