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],
    },
}
Expand description

Record corresponding to data read from CBDT.

Variants

Format1

Fields

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Byte-aligned bitmap data.

Format 1: small metrics, byte-aligned data.

Format2

Fields

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Bit-aligned bitmap data.

Format 2: small metrics, bit-aligned data.

Format5

Fields

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Bit-aligned bitmap data.

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

Format6

Fields

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Byte-aligned bitmap data.

Format 6: big metrics, byte-aligned data.

Format7

Fields

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Bit-aligned bitmap data.

Format7: big metrics, bit-aligned data.

Format8

Fields

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

components: ReadArray<'a, EbdtComponent>

Array of EbdtComponent records.

Format 8: small metrics, component data.

Format9

Fields

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

components: ReadArray<'a, EbdtComponent>

Array of EbdtComponent records.

Format 9: big metrics, component data.

Format17

Fields

small_metrics: SmallGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Raw PNG data

Format 17: small metrics, PNG image data.

Format18

Fields

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Raw PNG data

Format 18: big metrics, PNG image data.

Format19

Fields

big_metrics: BigGlyphMetrics

Metrics information for the glyph.

data: &'a [u8]

Raw PNG data

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

Implementations

The width of the bitmap.

The height of the bitmap.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.