#glyph #name #font

glyph-names

Mapping of characters to glyph names according to the Adobe Glyph List Specification

1 unstable release

0.1.0 Mar 5, 2020

#567 in Text processing

Download history 165/week @ 2022-03-12 236/week @ 2022-03-19 239/week @ 2022-03-26 322/week @ 2022-04-02 467/week @ 2022-04-09 492/week @ 2022-04-16 409/week @ 2022-04-23 408/week @ 2022-04-30 304/week @ 2022-05-07 277/week @ 2022-05-14 261/week @ 2022-05-21 208/week @ 2022-05-28 447/week @ 2022-06-04 311/week @ 2022-06-11 286/week @ 2022-06-18 307/week @ 2022-06-25

1,371 downloads per month
Used in 8 crates (2 directly)

BSD-3-Clause

50KB
620 lines

glyph-names


Mapping of characters to glyph names according to the Adobe Glyph List Specification.

Usage

use std::borrow::Cow;
use glyph_names::glyph_name;

fn main() {
    assert_eq!(glyph_name('a' as u32), Some(Cow::from("a")));
    assert_eq!(glyph_name('%' as u32), Some(Cow::from("percent")));
    assert_eq!(glyph_name('' as u32), Some(Cow::from("smileface")));
    assert_eq!(glyph_name('' as u32), Some(Cow::from("uni21A3")));
    assert_eq!(glyph_name('🕴' as u32), Some(Cow::from("u1F574")));
    assert_eq!(glyph_name(0x110000), None);
}

Notes

Regenerating aglfn.rs

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

No runtime deps