pub struct Sbix<'a> {
pub flags: u16,
pub strikes: Vec<SbixStrike<'a>>,
}Expand description
sbix table containing bitmaps.
Fields§
§flags: u16Drawing flags.
- Bit 0: Set to 1.
- Bit 1: Draw outlines.
- Bits 2 to 15: reserved (set to 0).
strikes: Vec<SbixStrike<'a>>Bitmap data for different sizes.
Implementations§
Source§impl<'a> Sbix<'a>
impl<'a> Sbix<'a>
Sourcepub fn find_strike(
&self,
glyph_index: u16,
target_ppem: u16,
_max_bit_depth: BitDepth,
) -> Option<&SbixStrike<'a>>
pub fn find_strike( &self, glyph_index: u16, target_ppem: u16, _max_bit_depth: BitDepth, ) -> Option<&SbixStrike<'a>>
Find a strike matching the desired parameters
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Sbix<'a>
impl<'a> RefUnwindSafe for Sbix<'a>
impl<'a> Send for Sbix<'a>
impl<'a> Sync for Sbix<'a>
impl<'a> Unpin for Sbix<'a>
impl<'a> UnwindSafe for Sbix<'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