[package] name = "fontique" version = "0.2.0" # Keep in sync with workspace dependency specification description = "Font enumeration and fallback." keywords = ["font", "text"] categories = ["gui", "os"] edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true [package.metadata.docs.rs] all-features = true [lints] workspace = true [features] default = ["system"] std = ["skrifa/std", "peniko/std", "dep:memmap2"] libm = ["skrifa/libm", "peniko/libm", "dep:core_maths"] icu_properties = ["dep:icu_properties"] unicode_script = ["dep:unicode-script"] # Enables support for system font backends system = ["std"] [dependencies] skrifa = { workspace = true } peniko = { workspace = true } smallvec = "1.13.2" memmap2 = { version = "0.9.5", optional = true } unicode-script = { version = "0.5.7", optional = true } core_maths = { version = "0.1.0", optional = true } icu_properties = { version = "1.5.1", optional = true } icu_locid = "1.5.0" hashbrown = "0.14.5" [target.'cfg(target_family="windows")'.dependencies] windows = { version = "0.58.0", features = ["implement", "Win32_Graphics_DirectWrite"] } windows-core = { version = "0.58" } [target.'cfg(target_vendor="apple")'.dependencies] core-text = "20.1.0" core-foundation = "0.9.4" objc2 = { version = "0.5.2" } objc2-foundation = { version = "0.2.2", features = ["NSArray", "NSEnumerator", "NSPathUtilities", "NSString"] } [target.'cfg(not(any(target_vendor="apple", target_family="windows")))'.dependencies] fontconfig-cache-parser = "0.2.0" roxmltree = "0.19.0"