Expand description
A single strike (ppem/ppi) combination.
Fields
ppem: u16
The PPEM size for which this strike was designed.
ppi: u16
The device pixel density (in pixels-per-inch) for which this strike was designed.
Implementations
sourceimpl<'a> SbixStrike<'a>
impl<'a> SbixStrike<'a>
sourcepub fn read_glyph(
&self,
glyph_index: u16
) -> Result<Option<SbixGlyph<'a>>, ParseError>
pub fn read_glyph(
&self,
glyph_index: u16
) -> Result<Option<SbixGlyph<'a>>, ParseError>
Read a glyph from this strike specified by glyph_index
.
Trait Implementations
sourceimpl<'a> ReadBinaryDep<'a> for SbixStrike<'a>
impl<'a> ReadBinaryDep<'a> for SbixStrike<'a>
type Args = usize
type HostType = SbixStrike<'a>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
num_glyphs: usize
) -> Result<Self, ParseError>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SbixStrike<'a>
impl<'a> Send for SbixStrike<'a>
impl<'a> Sync for SbixStrike<'a>
impl<'a> Unpin for SbixStrike<'a>
impl<'a> UnwindSafe for SbixStrike<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more