read_fonts::tables::svg

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

Source§

const TAG: Tag = _

SVG