freetype-sys 0.1.0

Low level binding for FreeType font library
Documentation

freetype-sys Build Status

Low level bindings for the FreeType font library

For windows users

In order to easily set-up freetype:

  • Download precompiled versions of libfreetype-6.dll and zlib1.dll (32bits or 64bits)

  • In the root of your project, in one of the parent directories, or in your home directory, create a .cargo directory. This directory should contain a config file that contains the following snippet:

[target.i686-pc-windows-gnu.freetype]
rustc-link-search = ["C:\\Path\\To\\32bits\\Freetype"]
rustc-link-lib = ["freetype-6"]
root = "C:\\Path\\To\\Freetype"

[target.x86_64-pc-windows-gnu.freetype]
rustc-link-search = ["C:\\Path\\To\\64bits\\Freetype"]
rustc-link-lib = ["freetype-6"]
root = "C:\\Path\\To\\Freetype"

[target.i686-pc-windows-gnu.z]
rustc-link-search = ["C:\\Path\\To\\32bits\\Zlib"]
rustc-link-lib = ["zlib1"]
root = "C:\\Path\\To\\Zlib"

[target.x86_64-pc-windows-gnu.z]
rustc-link-search = ["C:\\Path\\To\\64bits\\Zlib"]
rustc-link-lib = ["zlib1"]
root = "C:\\Path\\To\\Zlib"

For more informations, check the official Cargo documentation.