Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PistonDevelopers/freetype-rs
Rust bindings for FreeType library
https://github.com/PistonDevelopers/freetype-rs
Last synced: 28 days ago
JSON representation
Rust bindings for FreeType library
- Host: GitHub
- URL: https://github.com/PistonDevelopers/freetype-rs
- Owner: PistonDevelopers
- License: mit
- Created: 2014-06-15T06:01:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T13:12:29.000Z (5 months ago)
- Last Synced: 2024-10-31T11:28:05.991Z (about 1 month ago)
- Language: Rust
- Size: 1.44 MB
- Stars: 85
- Watchers: 45
- Forks: 63
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-typography - freetype-rs - Rust bindings for FreeType library. (Rust)
README
# freetype-rs [![Build Status](https://travis-ci.org/PistonDevelopers/freetype-rs.svg?branch=master)](https://travis-ci.org/PistonDevelopers/freetype-rs)
Rust bindings for FreeType library
## Requirements
* *Cargo*: We use Cargo to compile the project.
* *FreeType2 development libraries*: For installation instructions see
[freetype-sys](https://github.com/PistonDevelopers/freetype-sys).If the building fails, then it is likely that pkg-config does not find a FreeType library it can bind to. Use the feature "bundled" to build a static version of the library (requires a C compiler):
```text
[dependencies]
freetype-rs = { version = "*", features = ["bundled"] }
```## Build
Clone this repo then run
```
cd freetype-rs
cargo build
```## Examples
To build examples, use `cargo test`. They are all built in `./target/debug/examples/*`.
To run examples, use `cargo run --example name`, for example:
```
cargo run --example single_glyph examples/assets/FiraSans-Regular.ttf A
```[How to contribute](https://github.com/PistonDevelopers/piston/blob/master/CONTRIBUTING.md)