read_fonts::tables::sbix

Type Alias 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> 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 TopLevelTable for Sbix<'_>

Source§

const TAG: Tag = _

sbix