rust-fontconfig

Pure-Rust rewrite of the Linux fontconfig library (no system dependencies) - using ttf-parser and allsorts

NOTE: Also works on Windows and macOS - without external dependencies!

Motivation

There are a number of reasons why I want to have a pure-Rust version of fontconfig:

Now for the more practical reasons:

Usage

```rust use rust_fontconfig::{FcFontCache, FcPattern};

fn main() { let cache = FcFontCache::build(); let result =

cache.query(&FcPattern {
  name: Some(String::from("Arial")),
  .. Default::default()
});

println!("font path: {:?}", result);

} ```

Performance

License

MIT