[package]
edition = "2018"
rust-version = "1.77"
name = "deft-font-kit"
version = "0.15.0"
authors = ["Patrick Walton <pcwalton@mimiga.net>"]
build = "build.rs"
exclude = ["resources/**"]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cross-platform font loading library"
homepage = "https://github.com/servo/font-kit"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/servo/font-kit"
[lib]
name = "deft_font_kit"
path = "src/lib.rs"
[[example]]
name = "fallback"
path = "examples/fallback.rs"
[[example]]
name = "list-fonts"
path = "examples/list-fonts.rs"
[[example]]
name = "match-font"
path = "examples/match-font.rs"
[[example]]
name = "render-glyph"
path = "examples/render-glyph.rs"
[[test]]
name = "select_font"
path = "tests/select_font.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[dependencies.bitflags]
version = "2.4"
[dependencies.byteorder]
version = "1.2"
[dependencies.float-ord]
version = "0.3"
[dependencies.lazy_static]
version = "1.1"
[dependencies.libc]
version = "0.2"
[dependencies.log]
version = "0.4.4"
[dependencies.pathfinder_geometry]
version = "0.5"
[dependencies.pathfinder_simd]
version = "0.5.4"
[dependencies.yeslogic-fontconfig-sys]
version = "6.0"
optional = true
[dev-dependencies.clap]
version = "4"
[dev-dependencies.colored]
version = "2"
[dev-dependencies.pbr]
version = "1.0"
[dev-dependencies.prettytable-rs]
version = "0.10"
[features]
default = ["source"]
source = []
source-fontconfig = ["yeslogic-fontconfig-sys"]
source-fontconfig-default = ["source-fontconfig"]
source-fontconfig-dlopen = ["yeslogic-fontconfig-sys/dlopen"]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation]
version = "0.9"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-graphics]
version = "0.23"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-text]
version = "20.1.0"
[target.'cfg(not(any(target_arch = "wasm32", target_family = "windows", target_os = "android", target_env = "ohos")))'.dependencies.dirs]
version = "6.0"
[target.'cfg(not(any(target_family = "windows")))'.dependencies.freetype]
version = "0.7.2"
[target.'cfg(not(any(target_family = "windows")))'.dependencies.freetype-sys]
version = "0.20"
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32", target_os = "android", target_env = "ohos")))'.dependencies.yeslogic-fontconfig-sys]
version = "6.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.walkdir]
version = "2.1"
[target.'cfg(target_family = "windows")'.dependencies.dwrote]
version = "^0.11.3"
default-features = false
[target.'cfg(target_family = "windows")'.dependencies.winapi]
version = "0.3"
features = [
"dwrite",
"minwindef",
"sysinfoapi",
"winbase",
"winnt",
]