Registry / utility / font
library0.43.0rscratesunverified

A builder and parser for font files, supporting TrueType and OpenType formats.

# Cargo.toml [dependencies] font = "0.43.0"
INSTALL
IMPORT
SIG · FONT
F
font
utilityrustv0.43.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.

Font
use font::Font;

Parse a TrueType font file and access its metadata.

use font::Font; fn main() { let font_data = std::fs::read("font.ttf").unwrap(); let font = Font::from_bytes(&font_data).unwrap(); println!("Font name: {:?}", font.name()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.43.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
font — cargo add font · libregistry