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
GlyphId
by running https://github.com/RazrFalcon/ttf-parser/blob/master/examples/font2svg.rs#L116 and callingttf::GlyphId
on it -
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.