[dependencies.bitflags]
version = "2.4"
[dependencies.byteorder]
version = "1.2"
[dependencies.float-ord]
version = "0.3"
[dependencies.freetype]
optional = true
version = "0.7"
[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]
optional = true
version = "6.0"
[dev-dependencies.clap]
version = "4"
[dev-dependencies.colored]
version = "2"
[dev-dependencies.pbr]
version = "1.0"
[dev-dependencies.prettytable-rs]
version = "0.10"
[[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"
[features]
default = ["source"]
loader-freetype = ["freetype"]
loader-freetype-default = ["loader-freetype"]
source = []
source-fontconfig = ["yeslogic-fontconfig-sys"]
source-fontconfig-default = ["source-fontconfig"]
source-fontconfig-dlopen = ["yeslogic-fontconfig-sys/dlopen"]
[lib]
name = "font_kit"
path = "src/lib.rs"
[package]
authors = ["Patrick Walton <pcwalton@mimiga.net>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
description = "A cross-platform font loading library"
edition = "2018"
exclude = ["resources/**"]
homepage = "https://github.com/servo/font-kit"
license = "MIT OR Apache-2.0"
name = "font-kit"
readme = "README.md"
repository = "https://github.com/servo/font-kit"
rust-version = "1.77"
version = "0.14.2"
[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 = "5.0"
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios")))'.dependencies.freetype-sys]
version = "0.20"
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32", 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]
default-features = false
version = "0.11"
[target.'cfg(target_family = "windows")'.dependencies.winapi]
features = ["dwrite", "minwindef", "sysinfoapi", "winbase", "winnt"]
version = "0.3"
[[test]]
name = "select_font"
path = "tests/select_font.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"