Struct swash::Charmap [−][src]
pub struct Charmap<'a> { /* fields omitted */ }
Maps characters to nominal glyph identifiers.
Implementations
impl<'a> Charmap<'a>
[src]
impl<'a> Charmap<'a>
[src]pub fn from_font(font: &FontRef<'a>) -> Self
[src]
Creates a character map from the specified font.
pub fn proxy(&self) -> CharmapProxy
[src]
Returns the associated proxy.
pub fn map(&self, codepoint: impl Into<u32>) -> GlyphId
[src]
Returns a nominal glyph identifier for the specified codepoint.
pub fn enumerate(&self, f: impl FnMut(u32, GlyphId))
[src]
Invokes the specified closure with all codepoint/glyph identifier pairs in the character map.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Charmap<'a>
impl<'a> RefUnwindSafe for Charmap<'a>
impl<'a> UnwindSafe for Charmap<'a>
impl<'a> UnwindSafe for Charmap<'a>