[package]
name = "rusttype"
version = "0.8.3"
authors = [
"Dylan Ede <dylanede@googlemail.com>",
"Jeremy Soller <jackpot51@gmail.com>",
"Alex Butler <alexheretic@gmail.com>",
]
edition = "2018"
description = """
A pure Rust alternative to libraries like FreeType.
RustType provides an API for loading, querying and rasterising TrueType fonts.
It also provides an implementation of a dynamic GPU glyph cache for hardware font rendering.
"""
documentation = "https://docs.rs/rusttype"
homepage = "https://gitlab.redox-os.org/redox-os/rusttype"
repository = "https://gitlab.redox-os.org/redox-os/rusttype"
readme = "README.md"
license = "MIT / Apache-2.0"
keywords = ["font", "truetype", "opentype", "ttf", "otf"]
exclude = ["/dev/**"]
[package.metadata.docs.rs]
features = ["gpu_cache"]
[dependencies]
stb_truetype = { version = "0.3.1", default-features = false }
ordered-float = { version = "1", default-features = false }
approx = { version = "0.3", default-features = false }
libm = { version = "0.2.1", default-features = false, optional = true }
linked-hash-map = { version = "0.5", optional = true }
rustc-hash = { version = "1", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
crossbeam-deque = { version = "0.7", optional = true }
crossbeam-utils = { version = "0.7", optional = true }
num_cpus = { version = "1.0", optional = true }
[dev-dependencies]
[features]
default = ["std", "has-atomics"]
std = ["has-atomics", "stb_truetype/std"]
libm-math = ["libm", "stb_truetype/libm"]
has-atomics = []
gpu_cache = ["std", "linked-hash-map", "rustc-hash", "crossbeam-deque", "crossbeam-utils", "num_cpus"]
[workspace]
members = ["dev"]