Type Alias read_fonts::tables::sbix::Sbix

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

Aliased Type§

struct Sbix<'a> { /* private fields */ }

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.

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