glyph-names

Build Status Documentation Version License


Mapping of characters to glyph names according to the Adobe Glyph List Specification. This crate is no-std compatible.

Usage

```rust use std::borrow::Cow; use glyphnames::glyphname;

fn main() { asserteq!(glyphname('a' as u32), Some(Cow::from("a"))); asserteq!(glyphname('%' as u32), Some(Cow::from("percent"))); asserteq!(glyphname('☺' as u32), Some(Cow::from("smileface"))); asserteq!(glyphname('↣' as u32), Some(Cow::from("uni21A3"))); asserteq!(glyphname('🕴' as u32), Some(Cow::from("u1F574"))); asserteq!(glyphname(0x110000), None); } ```

Notes

Regenerating aglfn.rs

  1. Ensure you have the agl-aglfn submodule checked out (git submodule update --init).
  2. Run make.