Registry / utility / freetype-rs

freetype-rs

JSON →
library0.38.0rscratesunverified

Rust bindings for the FreeType font rendering library.

# Cargo.toml [dependencies] freetype-rs = "0.38.0"
INSTALL
IMPORT
SIG · FREETYPE-RS
F
freetype-rs
utilityrustv0.38.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Library
use freetype::Library;

Initialize FreeType and load a font face.

use freetype::Library; let lib = Library::init().unwrap(); let face = lib.new_face("/path/to/font.ttf", 0).unwrap(); face.set_char_size(40*64, 0, 100, 0).unwrap();
Debug
Known issues
gotchaRequires FreeType system library to be installed.
fix
Install FreeType development headers (e.g., libfreetype6-dev on Ubuntu).
affects: *
Upgrade
Version history
0.38.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
freetype-rs — cargo add freetype-rs · libregistry