pub struct GlyphFallback { /* private fields */ }Expand description
The Arial stand-in LoadSubstFace("Arial", …) builds on first miss.
Implementations§
Source§impl GlyphFallback
impl GlyphFallback
Sourcepub fn gid(&self, unicode: &[char], code: CharCode) -> Option<Gid>
pub fn gid(&self, unicode: &[char], code: CharCode) -> Option<Gid>
The glyph Arial draws for this character, or None when Arial has
none either (FallbackGlyphFromCharcode returning -1).
Unicode comes from the host’s UnicodeFromCharCode; an empty mapping
falls back to the raw character code, which is what the C++ passes to
GetCharIndex.
Sourcepub fn hinted_path(&self, gid: Gid) -> Option<BezPath>
pub fn hinted_path(&self, gid: Gid) -> Option<BezPath>
A glyph’s outline, grid-fitted at 64 ppem, for the bitmap path.
Sourcepub fn advance(&self, gid: Gid) -> i32
pub fn advance(&self, gid: Gid) -> i32
The face’s own advance for this glyph, in 1000/em units. The spacing
heuristic compares this to the host font’s /Widths.
Sourcepub fn render_synth(
&self,
xx: i32,
xy: i32,
vertical: bool,
) -> Option<SynthGlyph>
pub fn render_synth( &self, xx: i32, xy: i32, vertical: bool, ) -> Option<SynthGlyph>
The synthetic italic and embolden the bitmap path applies, resolved against the device matrix. Arial is never a CID font.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlyphFallback
impl RefUnwindSafe for GlyphFallback
impl Send for GlyphFallback
impl Sync for GlyphFallback
impl Unpin for GlyphFallback
impl UnsafeUnpin for GlyphFallback
impl UnwindSafe for GlyphFallback
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more