2 unstable releases

0.2.0 Jun 4, 2021
0.1.0 Jan 16, 2021

#55 in Rendering engine

Download history 144/week @ 2024-03-14 244/week @ 2024-03-21 235/week @ 2024-03-28 193/week @ 2024-04-04 199/week @ 2024-04-11 182/week @ 2024-04-18 187/week @ 2024-04-25 149/week @ 2024-05-02 165/week @ 2024-05-09 200/week @ 2024-05-16 157/week @ 2024-05-23 188/week @ 2024-05-30 146/week @ 2024-06-06 179/week @ 2024-06-13 231/week @ 2024-06-20 129/week @ 2024-06-27

719 downloads per month
Used in 19 crates (via tectonic_xetex_layout)

MIT license

7KB

The tectonic_bridge_freetype2 crate

This crate is part of the Tectonic project. It exposes the C API of the FreeType font rendering engine within the Rust/Cargo build framework, with no Rust bindings.

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_PATH, which will be a semicolon-separated list of directories containing C headers, such that your code will be able to successfully include the ft2build.h header.

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 suffice:

#[allow(unused_imports)]
#[allow(clippy::single_component_path_imports)]
use tectonic_bridge_freetype2;

Cargo features

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.

Dependencies

~26KB