rockyzhengwu / freetype-sys

Low level bindings for the FreeType font library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Low level bindings for the FreeType font library

License:MIT License


Languages

Language:C 64.7%Language:HTML 26.4%Language:Shell 3.2%Language:Makefile 1.5%Language:Python 1.3%Language:M4 0.7%Language:Rust 0.6%Language:DIGITAL Command Language 0.6%Language:C++ 0.3%Language:CMake 0.3%Language:JavaScript 0.2%Language:Meson 0.1%Language:Perl 0.1%Language:Awk 0.0%Language:CSS 0.0%Language:Roff 0.0%