[−][src]Crate glyph_names
Map a character to a glyph name according to the Adobe Glyph List Specification.
Example
use std::borrow::Cow; use glyph_names::glyph_name; 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);
Functions
glyph_name | Look up a glyph name for the supplied glyph id, char code pair. |