Registry / utility / fontdb

fontdb

JSON →
library0.23.0rscratesunverified

A simple, in-memory font database with CSS-like queries for font selection.

# Cargo.toml [dependencies] fontdb = "0.23.0"
INSTALL
IMPORT
SIG · FONTDB
F
fontdb
utilityrustv0.23.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.

Database
use fontdb::Database;

Loads system fonts and queries for a specific font family.

use fontdb::Database; fn main() { let mut db = Database::new(); db.load_system_fonts(); let query = fontdb::Query { families: &[fontdb::Family::Name("Arial")], ..Default::default() }; if let Some(id) = db.query(&query) { println!("Found font: {:?}", db.face(id).unwrap().family); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.23.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fontdb — cargo add fontdb · libregistry