31 releases (20 breaking)
0.20.1 | Apr 3, 2024 |
---|---|
0.20.0 | Jan 19, 2024 |
0.19.0 | Oct 19, 2023 |
0.17.0 | Nov 16, 2022 |
0.0.1 | Dec 11, 2014 |
#29 in Graphics APIs
112,233 downloads per month
Used in 150 crates
(10 directly)
7MB
141K
SLoC
Contains (autotools obfuscated code, 565KB) freetype2/builds/unix/configure, (obscure autoconf code, 34KB) freetype2/builds/unix/configure.ac
freetype-sys
Low level bindings for the FreeType font library
For windows users
-pc-windows-gnu
In order to easily setup freetype just get MSYS2 and install either the mingw-w64-x86_64-freetype
or mingw-w64-i686-freetype
package and then use Rust from within the correct mingw shell of MSYS2.
More information on setting up MSYS2 for Rust can be found in the Rust readme
-pc-windows-msvc
Prebuilt libraries for freetype are available here.
Then 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-msvc.freetype]
rustc-link-search = ["C:\\Path\\To\\binaries\\i686"]
rustc-link-lib = ["freetype"]
[target.x86_64-pc-windows-msvc.freetype]
rustc-link-search = ["C:\\Path\\To\\binaries\\x86_64"]
rustc-link-lib = ["freetype"]
For more informations, check the official Cargo documentation.