shaperglot 1.1.1

Test font files for OpenType language support
Documentation

Shaperglot is a library for checking a font's language support.

Unlike other language coverage tools, shaperglot is based on the idea that the font must not simply cover Unicode codepoints to support a language but must also behave in certain ways. Shaperglot does not dictate particular implementations of language support, in terms of what glyphs or rules are present in the font or how glyphs should be named, but tests a font for its behaviour.

Example

use shaperglot::{Checker, Languages, Provider};

fn test_font(font_binary: &[u8]) {
  let font = Checker::new(font_binary).expect("Failed to load font");
  let languages = Languages::new();
  for language in languages.iter() {
     let results = font.check(language);
     println!("{}", results.to_summary_string(language));
  }
}