Trait allsorts_no_std::binary::read::ReadBinaryDep[][src]

pub trait ReadBinaryDep<'a> {
    type Args: Clone;
    type HostType: Sized;
    fn read_dep(
        ctxt: &mut ReadCtxt<'a>,
        args: Self::Args
    ) -> Result<Self::HostType, ParseError>; }

Associated Types

Loading content...

Required methods

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    args: Self::Args
) -> Result<Self::HostType, ParseError>
[src]

Loading content...

Implementors

impl<'a> ReadBinaryDep<'a> for ImageFormat[src]

type Args = (ImageFormat, Option<BigGlyphMetrics>)

type HostType = GlyphBitmapData<'a>

impl<'a> ReadBinaryDep<'a> for CustomCharset<'a>[src]

type Args = usize

type HostType = Self

impl<'a> ReadBinaryDep<'a> for FDSelect<'a>[src]

type Args = usize

type HostType = Self

impl<'a> ReadBinaryDep<'a> for PairPos[src]

type HostType = Self

type Args = LayoutCache<GPOS>

impl<'a> ReadBinaryDep<'a> for ReverseChainSingleSubst[src]

type HostType = Self

type Args = LayoutCache<GSUB>

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    cache: Self::Args
) -> Result<Self, ParseError>
[src]

Parse a GSUB Lookup Type 8 Subtable from the given read context

impl<'a> ReadBinaryDep<'a> for SinglePos[src]

type HostType = Self

type Args = LayoutCache<GPOS>

impl<'a> ReadBinaryDep<'a> for SingleSubst[src]

type HostType = Self

type Args = LayoutCache<GSUB>

impl<'a> ReadBinaryDep<'a> for CompositeGlyphArgument[src]

type Args = CompositeGlyphFlag

type HostType = Self

impl<'a> ReadBinaryDep<'a> for Woff2GlyfTable[src]

type Args = (&'a TableDirectoryEntry, &'a LocaTable<'a>)

type HostType = GlyfTable<'a>

impl<'a> ReadBinaryDep<'a> for Woff2HmtxTable[src]

type Args = (&'a TableDirectoryEntry, &'a GlyfTable<'a>, usize, usize)

type HostType = HmtxTable<'a>

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    (hmtx_entry, glyf, num_glyphs, num_h_metrics): Self::Args
) -> Result<Self::HostType, ParseError>
[src]

Read hmtx table from WOFF2 file

num_h_metrics is defined by the hhea table

impl<'a> ReadBinaryDep<'a> for Woff2LocaTable[src]

type Args = (&'a TableDirectoryEntry, usize, IndexToLocFormat)

type HostType = LocaTable<'a>

impl<'a> ReadBinaryDep<'a> for BitmapSize<'a>[src]

type Args = ReadScope<'a>

type HostType = Self

impl<'a> ReadBinaryDep<'a> for Sbix<'a>[src]

type Args = usize

type HostType = Self

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    num_glyphs: usize
) -> Result<Self, ParseError>
[src]

Read the sbix table.

num_glyphs should be read from the maxp table.

impl<'a> ReadBinaryDep<'a> for SbixGlyph<'a>[src]

type Args = usize

type HostType = Self

impl<'a> ReadBinaryDep<'a> for SbixStrike<'a>[src]

type Args = usize

type HostType = Self

impl<'a> ReadBinaryDep<'a> for AlternateSubst[src]

type HostType = Self

type Args = LayoutCache<GSUB>

impl<'a> ReadBinaryDep<'a> for Class1Record[src]

type Args = (usize, ValueFormat, ValueFormat)

type HostType = Self

impl<'a> ReadBinaryDep<'a> for Class2Record[src]

type Args = (ValueFormat, ValueFormat)

type HostType = Self

impl<'a> ReadBinaryDep<'a> for CursivePos[src]

type HostType = Self

type Args = LayoutCache<GPOS>

impl<'a> ReadBinaryDep<'a> for FeatureRecord[src]

type Args = ReadScope<'a>

type HostType = FeatureRecord

impl<'a> ReadBinaryDep<'a> for LangSysRecord[src]

type Args = ReadScope<'a>

type HostType = LangSysRecord

impl<'a> ReadBinaryDep<'a> for LigatureSubst[src]

type HostType = Self

type Args = LayoutCache<GSUB>

impl<'a> ReadBinaryDep<'a> for MarkBasePos[src]

type HostType = Self

type Args = LayoutCache<GPOS>

impl<'a> ReadBinaryDep<'a> for MarkLigPos[src]

type HostType = Self

type Args = LayoutCache<GPOS>

impl<'a> ReadBinaryDep<'a> for MultipleSubst[src]

type HostType = Self

type Args = LayoutCache<GSUB>

impl<'a> ReadBinaryDep<'a> for PairSet[src]

type Args = (ValueFormat, ValueFormat)

type HostType = Self

impl<'a> ReadBinaryDep<'a> for PairValueRecord[src]

type Args = (ValueFormat, ValueFormat)

type HostType = Self

impl<'a> ReadBinaryDep<'a> for ScriptRecord[src]

type Args = ReadScope<'a>

type HostType = ScriptRecord

impl<'a> ReadBinaryDep<'a> for CompositeGlyph[src]

type Args = CompositeGlyphFlag

type HostType = Self

impl<'a> ReadBinaryDep<'a> for GlyfTable<'a>[src]

type Args = &'a LocaTable<'a>

type HostType = Self

impl<'a> ReadBinaryDep<'a> for SimpleGlyph[src]

type Args = u16

type HostType = Self

impl<'a> ReadBinaryDep<'a> for LocaTable<'a>[src]

type Args = (usize, IndexToLocFormat)

type HostType = Self

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    (num_glyphs, index_to_loc_format): (usize, IndexToLocFormat)
) -> Result<Self, ParseError>
[src]

Read a loca table from ctxt

  • num_glyphs is the number of glyphs in the font. The value for num_glyphs is found in the ‘maxp’ table.
  • index_to_loc_format specifies whether the offsets in the loca table are short or long. This value can be read from the head table.

impl<'a> ReadBinaryDep<'a> for Os2[src]

type HostType = Self

type Args = usize

impl<'a> ReadBinaryDep<'a> for HmtxTable<'a>[src]

type Args = (usize, usize)

type HostType = Self

impl<'a> ReadBinaryDep<'a> for SVGDocumentRecord<'a>[src]

type Args = ReadScope<'a>

type HostType = Self

impl<'a> ReadBinaryDep<'a> for TableDirectoryEntry[src]

type Args = usize

type HostType = Self

impl<'a> ReadBinaryDep<'a> for ValueRecord[src]

type Args = ValueFormat

type HostType = Self

impl<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = T::HostType

impl<'a, T: LayoutTableType> ReadBinaryDep<'a> for ChainContextLookup<T>[src]

type HostType = Self

type Args = LayoutCache<T>

impl<'a, T: LayoutTableType> ReadBinaryDep<'a> for ContextLookup<T>[src]

type HostType = Self

type Args = LayoutCache<T>

Loading content...