#freetype #ffi

sys freetype-sys

Low level binding for FreeType font library

26 releases (16 breaking)

Uses old Rust 2015

0.16.0 Aug 4, 2022
0.15.0 May 8, 2021
0.14.0 Feb 13, 2021
0.13.1 Jul 5, 2020
0.0.1 Dec 11, 2014

#369 in Graphics APIs

Download history 7675/week @ 2022-04-22 7946/week @ 2022-04-29 8393/week @ 2022-05-06 7423/week @ 2022-05-13 6733/week @ 2022-05-20 7250/week @ 2022-05-27 7925/week @ 2022-06-03 7787/week @ 2022-06-10 7407/week @ 2022-06-17 8523/week @ 2022-06-24 8939/week @ 2022-07-01 8511/week @ 2022-07-08 7629/week @ 2022-07-15 6862/week @ 2022-07-22 8047/week @ 2022-07-29 9277/week @ 2022-08-05

33,093 downloads per month
Used in 135 crates (8 directly)

MIT license

6MB
121K SLoC

C 101K SLoC // 0.2% comments Visual Studio Project 9K SLoC Shell 8K SLoC // 0.2% comments Rust 1.5K SLoC // 0.0% comments Python 1K SLoC // 0.8% comments Perl 422 SLoC // 0.1% comments Visual Studio Solution 376 SLoC JavaScript 61 SLoC // 0.9% comments

freetype-sys Build Status Build status

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.

Dependencies