Source code

Revision control

Copy as Markdown

Other Tools

[package]
name = "read-fonts"
version = "0.41.0"
description = "Reading OpenType font files."
readme = "README.md"
categories = ["text-processing", "parsing", "graphics"]
rust-version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
[package.metadata.docs.rs]
# To build locally:
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --features libm,serde,std
features = ["libm", "serde", "std"]
[features]
std = ["font-types/std"]
codegen_test = []
scaler_test = []
# experimental support for incremental font transfer (https://www.w3.org/TR/IFT/)
# code behind this feature does not honor semver and may break at any time.
ift = []
# this feature is not stable, but provides untyped traversal of font tables.
# we do not consider this feature public API for the purposes of semver.
experimental_traverse = ["std"]
# Enables experimental implementations of proposed changes to the spec
spec_next = []
# Enables support for a new font API, as proposed at
experimental_font_api = []
default = ["std"]
serde = ["dep:serde", "font-types/serde"]
libm = ["dep:core_maths"]
# Support for mapping glyph names <-> unicode via the Adobe glyph list
agl = []
[dependencies]
font-types = { workspace = true, features = ["bytemuck"] }
serde = { version = "1.0", features = ["derive"], optional = true }
core_maths = { workspace = true, optional = true }
bytemuck = { workspace = true }
once_cell = { version = "1.21.4", default-features = false, features = [
"alloc",
"race",
] }
[dev-dependencies]
read-fonts = { path = ".", features = ["experimental_font_api"] }
font-test-data = { workspace = true }
criterion = { workspace = true }
rand = { version = "0.10.1", features = ["thread_rng"] }
serde_json = { workspace = true }
[[bench]]
name = "int_set_benchmark"
harness = false
[[bench]]
name = "sparse_bit_set_benchmark"
harness = false
[[bench]]
name = "table_lookup"
harness = false