Cargo Features
[dependencies]
fontkit = { version = "0.6.0-beta.9", default-features = false, features = ["parse", "metrics", "ras", "optimize_stroke_broken", "wit", "brotli-decompressor"] }
- default = metrics, parse, ras, wit
-
These default features are set whenever
fontkit
is added without
somewhere in the dependency tree.default-features = false - parse default = byteorder, flate2, ordered-float, woff2-patched
-
Affects
conv::woff
… - metrics default = textwrap, unicode-bidi, unicode-normalization, unicode-script
- ras default = ab_glyph_rasterizer, fast_image_resize, pathfinder_content, pathfinder_geometry, pathfinder_simd, png
- optimize_stroke_broken
- wit default = wit-bindgen-rt
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- ab_glyph_rasterizer ras
- brotli-decompressor implicit feature
-
Enables brotli-decompressor ^2.3.2
- byteorder parse
- flate2 parse
- ordered-float parse
-
Enables ordered-float ^3.9.1
- pathfinder_content ras
- pathfinder_geometry ras
- pathfinder_simd ras
- textwrap metrics
- unicode-bidi metrics
- unicode-normalization metrics
- unicode-script metrics
- woff2-patched parse
- png ras
- fast_image_resize not wasm32 ras
-
Enables fast_image_resize ^3.0.4
- wit-bindgen-rt wasm32 wit
-
Enables wit-bindgen-rt ^0.24.0