#font #scan #read-dir #readdirp

nightly scan-fonts

Recursively list which fonts are available in a directory

1 stable release

1.0.0 Nov 24, 2018

#8 in #fonts

MIT/Apache

13KB
144 lines

scan-fonts

crates.io version build status downloads docs.rs docs

Recursively list which fonts are available in a directory.

Examples

Basic usage

use scan_fonts::scan_fonts;

for font in scan_fonts(".") {
  println!("font {}", font.name);
}

Installation

$ cargo add scan-fonts

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

References

None.

License

MIT OR Apache-2.0

Dependencies

~2MB
~48K SLoC