Type Alias read_fonts::tables::svg::Svg

source ·
pub type Svg<'a> = TableRef<'a, SvgMarker>;
Expand description

The SVG table

Aliased Type§

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

Implementations§

source§

impl<'a> Svg<'a>

source

pub fn version(&self) -> u16

Table version (starting at 0). Set to 0.

source

pub fn svg_document_list_offset(&self) -> Offset32

Offset to the SVGDocumentList, from the start of the SVG table. Must be non-zero.

source

pub fn svg_document_list(&self) -> Result<SVGDocumentList<'a>, ReadError>

Attempt to resolve svg_document_list_offset.

source§

impl<'a> Svg<'a>

source

pub fn glyph_data( &self, glyph_id: GlyphId, ) -> Result<Option<&'a [u8]>, ReadError>

Get the raw data of the SVG document. Is not guaranteed to be valid and might be compressed.

Trait Implementations§

source§

impl<'a> Debug for Svg<'a>

source§

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

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

impl<'a> FontRead<'a> for Svg<'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 Svg<'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 Svg<'_>

source§

const TAG: Tag = _

SVG