Type Alias Cbdt

Source
pub type Cbdt<'a> = TableRef<'a, CbdtMarker>;
Expand description

Aliased Type§

pub struct Cbdt<'a> {
    pub(crate) shape: CbdtMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: CbdtMarker§data: FontData<'a>

Implementations§

Source§

impl<'a> Cbdt<'a>

Source

pub fn major_version(&self) -> u16

Major version of the CBDT table, = 3.

Source

pub fn minor_version(&self) -> u16

Minor version of CBDT table, = 0.

Source§

impl<'a> Cbdt<'a>

Source

pub fn data( &self, location: &BitmapLocation, ) -> Result<BitmapData<'a>, ReadError>

Trait Implementations§

Source§

impl<'a> Debug for Cbdt<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> FontRead<'a> for Cbdt<'a>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
Source§

impl<'a> SomeTable<'a> for Cbdt<'a>

Source§

fn type_name(&self) -> &str

The name of this table
Source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.
Source§

impl TopLevelTable for Cbdt<'_>

Source§

const TAG: Tag

CBDT