Struct allsorts_no_std::bitmap::sbix::Sbix[][src]

pub struct Sbix<'a> {
    pub flags: u16,
    pub strikes: Vec<SbixStrike<'a>>,
}

sbix table containing bitmaps.

Fields

flags: u16

Drawing 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

impl<'a> Sbix<'a>[src]

pub fn find_strike(
    &self,
    glyph_index: u16,
    target_ppem: u16,
    _max_bit_depth: BitDepth
) -> Option<&SbixStrike<'a>>
[src]

Find a strike matching the desired parameters

Trait Implementations

impl<'a> ReadBinaryDep<'a> for Sbix<'a>[src]

type Args = usize

type HostType = Self

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    num_glyphs: usize
) -> Result<Self, ParseError>
[src]

Read the sbix table.

num_glyphs should be read from the maxp table.

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.