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
Format 1: small metrics, byte-aligned data.
Fields
small_metrics: SmallGlyphMetricsMetrics information for the glyph.
Format2
Format 2: small metrics, bit-aligned data.
Fields
small_metrics: SmallGlyphMetricsMetrics information for the glyph.
Format5
Format 5: metrics in EBLC, bit-aligned image data only.
Fields
big_metrics: BigGlyphMetricsMetrics information for the glyph.
Format6
Format 6: big metrics, byte-aligned data.
Fields
big_metrics: BigGlyphMetricsMetrics information for the glyph.
Format7
Format7: big metrics, bit-aligned data.
Fields
big_metrics: BigGlyphMetricsMetrics information for the glyph.
Format8
Format 8: small metrics, component data.
Fields
small_metrics: SmallGlyphMetricsMetrics information for the glyph.
components: ReadArray<'a, EbdtComponent>Array of EbdtComponent records.
Format9
Format 9: big metrics, component data.
Fields
big_metrics: BigGlyphMetricsMetrics information for the glyph.
components: ReadArray<'a, EbdtComponent>Array of EbdtComponent records.
Format17
Format 17: small metrics, PNG image data.
Fields
small_metrics: SmallGlyphMetricsMetrics information for the glyph.
Format18
Format 18: big metrics, PNG image data.
Format19
Format 19: metrics in CBLC table, PNG image data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GlyphBitmapData<'a>
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§
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
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>
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>
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