There are a variety of other low-level FreeType-related crates available, including:
This package is distinctive because:
- It uses Tectonic’s dependency-finding framework, which supports both pkg-config and vcpkg.
- It ensures that FreeType’s C API is exposed to Cargo.
Ideally, one day this crate will be superseded by one of the above crates.
If your project depends on this crate, Cargo will export for your build script
an environment variable named
DEP_FREETYPE2_INCLUDE, which will be the name of
a directory containing the
You will need to ensure that your Rust code actually references this crate in
order for the linker to include linked libraries. A
use statement will
#[allow(unused_imports)] #[allow(clippy::single_component_path_imports)] use tectonic_bridge_freetype2;
At the moment this crate does not provide any Cargo features. It is intended that eventually it will, to allow control over whether the FreeType library is vendored or not.