pub struct SbixStrike<'a> {
pub ppem: u16,
pub ppi: u16,
/* private fields */
}Expand description
A single strike (ppem/ppi) combination.
Fields§
§ppem: u16The PPEM size for which this strike was designed.
ppi: u16The device pixel density (in pixels-per-inch) for which this strike was designed.
Implementations§
Source§impl<'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§
Source§impl<'b> ReadBinaryDep for SbixStrike<'b>
impl<'b> ReadBinaryDep for SbixStrike<'b>
Auto Trait Implementations§
impl<'a> Freeze for SbixStrike<'a>
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§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more