Enum allsorts_no_std::bitmap::cbdt::GlyphBitmapData[][src]

pub enum GlyphBitmapData<'a> {
    Format1 {
        small_metrics: SmallGlyphMetrics,
        data: &'a [u8],
    },
    Format2 {
        small_metrics: SmallGlyphMetrics,
        data: &'a [u8],
    },
    Format5 {
        big_metrics: BigGlyphMetrics,
        data: &'a [u8],
    },
    Format6 {
        big_metrics: BigGlyphMetrics,
        data: &'a [u8],
    },
    Format7 {
        big_metrics: BigGlyphMetrics,
        data: &'a [u8],
    },
    Format8 {
        small_metrics: SmallGlyphMetrics,
        components: ReadArray<'a, EbdtComponent>,
    },
    Format9 {
        big_metrics: BigGlyphMetrics,
        components: ReadArray<'a, EbdtComponent>,
    },
    Format17 {
        small_metrics: SmallGlyphMetrics,
        data: &'a [u8],
    },
    Format18 {
        big_metrics: BigGlyphMetrics,
        data: &'a [u8],
    },
    Format19 {
        big_metrics: BigGlyphMetrics,
        data: &'a [u8],
    },
}

Record corresponding to data read from CBDT.

Variants

Format1

Format 1: small metrics, byte-aligned data.

Fields of Format1

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Byte-aligned bitmap data.

Format2

Format 2: small metrics, bit-aligned data.

Fields of Format2

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Bit-aligned bitmap data.

Format5

Format 5: metrics in EBLC, bit-aligned image data only.

Fields of Format5

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Bit-aligned bitmap data.

Format6

Format 6: big metrics, byte-aligned data.

Fields of Format6

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Byte-aligned bitmap data.

Format7

Format7: big metrics, bit-aligned data.

Fields of Format7

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Bit-aligned bitmap data.

Format8

Format 8: small metrics, component data.

Fields of Format8

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

components: ReadArray<'a, EbdtComponent>

Array of EbdtComponent records.

Format9

Format 9: big metrics, component data.

Fields of Format9

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

components: ReadArray<'a, EbdtComponent>

Array of EbdtComponent records.

Format17

Format 17: small metrics, PNG image data.

Fields of Format17

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Raw PNG data

Format18

Format 18: big metrics, PNG image data.

Fields of Format18

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Raw PNG data

Format19

Format 19: metrics in CBLC table, PNG image data.

Fields of Format19

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Raw PNG data

Implementations

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

pub fn width(&self) -> u8[src]

The width of the bitmap.

pub fn height(&self) -> u8[src]

The height of the bitmap.

Trait Implementations

impl<'a> Debug for GlyphBitmapData<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for GlyphBitmapData<'a>

impl<'a> Send for GlyphBitmapData<'a>

impl<'a> Sync for GlyphBitmapData<'a>

impl<'a> Unpin for GlyphBitmapData<'a>

impl<'a> UnwindSafe for GlyphBitmapData<'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.