Type Alias Sbix

Source
pub type Sbix<'a> = TableRef<'a, SbixMarker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> Sbix<'a>

Source

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

A constructor that requires additional arguments.

This type requires some external state in order to be parsed.

Source§

impl<'a> Sbix<'a>

Source

pub fn version(&self) -> u16

Table version number — set to 1.

Source

pub fn flags(&self) -> HeaderFlags

Bit 0: Set to 1. Bit 1: Draw outlines. Bits 2 to 15: reserved (set to 0).

Source

pub fn num_strikes(&self) -> u32

Number of bitmap strikes.

Source

pub fn strike_offsets(&self) -> &'a [BigEndian<Offset32>]

Offsets from the beginning of the ‘sbix’ table to data for each individual bitmap strike.

Source

pub fn strikes(&self) -> ArrayOfOffsets<'a, Strike<'a>, Offset32>

A dynamically resolving wrapper for strike_offsets.

Source

pub(crate) fn num_glyphs(&self) -> u16

Trait Implementations§

Source§

impl<'a> Debug for Sbix<'a>

Source§

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

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

impl<'a> FontReadWithArgs<'a> for Sbix<'a>

Source§

fn read_with_args(data: FontData<'a>, args: &u16) -> Result<Self, ReadError>

read an item, using the provided args. Read more
Source§

impl ReadArgs for Sbix<'_>

Source§

impl<'a> SomeTable<'a> for Sbix<'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 Sbix<'_>

Source§

const TAG: Tag

sbix