Low level bindings for the FreeType font library
In order to easily set-up freetype:
Download precompiled versions of libfreetype-6.dll
and zlib1.dll
(see the downloads page)
In the root of your project or in one of the parent directories,
create a .cargo
directory. This directory should contain a config
file that contains the following snippet:
```toml [target.i686-pc-windows-gnu.freetype] rustc-link-search = ["C:\Path\To\Freetype"] rustc-link-lib = ["freetype-6"] root = "C:\Path\To\Freetype"
[target.x86_64-pc-windows-gnu.freetype] rustc-link-search = ["C:\Path\To\Freetype"] rustc-link-lib = ["freetype-6"] root = "C:\Path\To\Freetype"
[target.i686-pc-windows-gnu.z] rustc-link-search = ["C:\Path\To\Zlib"] rustc-link-lib = ["zlib1"] root = "C:\Path\To\Zlib"
[target.x86_64-pc-windows-gnu.z] rustc-link-search = ["C:\Path\To\Zlib"] rustc-link-lib = ["zlib1"] root = "C:\Path\To\Zlib" ```
For more informations, check the official Cargo documentation.