pub struct Strike<'a> {
font: &'a Font,
kind: StrikeKind<'a>,
}Expand description
A set of bitmaps at one size.
Fields§
§font: &'a Font§kind: StrikeKind<'a>Implementations§
Source§impl<'a> Strike<'a>
impl<'a> Strike<'a>
Sourcepub fn ppem(&self) -> u16
pub fn ppem(&self) -> u16
Returns the size of the strike.
This is the larger of the horizontal and vertical pixels per em.
Sourcepub fn source(&self) -> BitmapSource
pub fn source(&self) -> BitmapSource
Returns the table that contains the strike.
Sourcepub fn get(&self, glyph: GlyphId) -> Option<BitmapGlyph<'a>>
pub fn get(&self, glyph: GlyphId) -> Option<BitmapGlyph<'a>>
Returns the bitmap for glyph, or None if the strike does not
contain it.
A strike with no size has no glyphs, because its bitmaps cannot be placed in font units.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Strike<'a>
impl<'a> !UnwindSafe for Strike<'a>
impl<'a> Freeze for Strike<'a>
impl<'a> Send for Strike<'a>
impl<'a> Sync for Strike<'a>
impl<'a> Unpin for Strike<'a>
impl<'a> UnsafeUnpin for Strike<'a>
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