crate: ttf_parser::Face - Rust
After we load font "foobar.ttf", I want to get a list of all valid chars that this Font represents.
Here is what I have so far:
I know we can construct valid
GlyphIdby running ttf-parser/font2svg.rs at master · RazrFalcon/ttf-parser · GitHub and calling
I also know that we have lib.rs - source which has type:
pub fn glyph_index(&self, c: char) -> Option<GlyphId>
However, I need something that gives me either
GlyphId -> char or
Font -> Vec<char> -- I want way to enumerate all the "valid" chars of a font.