Crate rust_fontconfig
source ·Expand description
Library for getting and matching system fonts with minimal dependencies
Usage
use rust_fontconfig::{FcFontCache, FcPattern};
fn main() {
let cache = FcFontCache::build();
let results = cache.query(&FcPattern {
name: Some(String::from("Arial")),
.. Default::default()
});
println!("font results: {:?}", results);
}