Trait allsorts_no_std::binary::read::ReadBinaryDep [−][src]
Associated Types
Loading content...Required methods
Loading content...Implementors
impl<'a> ReadBinaryDep<'a> for ImageFormat
[src]
type Args = (ImageFormat, Option<BigGlyphMetrics>)
type HostType = GlyphBitmapData<'a>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
(format, metrics): Self::Args
) -> Result<Self::HostType, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
(format, metrics): Self::Args
) -> Result<Self::HostType, ParseError>
impl<'a> ReadBinaryDep<'a> for CustomCharset<'a>
[src]
type Args = usize
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
n_glyphs: usize
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
n_glyphs: usize
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for FDSelect<'a>
[src]
type Args = usize
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
n_glyphs: usize
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
n_glyphs: usize
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for PairPos
[src]
type HostType = Self
type Args = LayoutCache<GPOS>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
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]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
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>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for SingleSubst
[src]
type HostType = Self
type Args = LayoutCache<GSUB>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for CompositeGlyphArgument
[src]
type Args = CompositeGlyphFlag
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
flags: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
flags: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for Woff2GlyfTable
[src]
type Args = (&'a TableDirectoryEntry, &'a LocaTable<'a>)
type HostType = GlyfTable<'a>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
(entry, loca): Self::Args
) -> Result<Self::HostType, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
(entry, loca): Self::Args
) -> Result<Self::HostType, ParseError>
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]
ctxt: &mut ReadCtxt<'a>,
(hmtx_entry, glyf, num_glyphs, num_h_metrics): Self::Args
) -> Result<Self::HostType, ParseError>
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>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
(loca_entry, num_glyphs, index_to_loc_format): Self::Args
) -> Result<Self::HostType, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
(loca_entry, num_glyphs, index_to_loc_format): Self::Args
) -> Result<Self::HostType, ParseError>
impl<'a> ReadBinaryDep<'a> for BitmapSize<'a>
[src]
type Args = ReadScope<'a>
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cblc_scope: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cblc_scope: Self::Args
) -> Result<Self, ParseError>
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]
ctxt: &mut ReadCtxt<'a>,
num_glyphs: usize
) -> Result<Self, ParseError>
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
fn read_dep(ctxt: &mut ReadCtxt<'a>, length: usize) -> Result<Self, ParseError>
[src]
impl<'a> ReadBinaryDep<'a> for SbixStrike<'a>
[src]
type Args = usize
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
num_glyphs: usize
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
num_glyphs: usize
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for AlternateSubst
[src]
type HostType = Self
type Args = LayoutCache<GSUB>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for Class1Record
[src]
type Args = (usize, ValueFormat, ValueFormat)
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for Class2Record
[src]
type Args = (ValueFormat, ValueFormat)
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for CursivePos
[src]
type HostType = Self
type Args = LayoutCache<GPOS>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for FeatureRecord
[src]
type Args = ReadScope<'a>
type HostType = FeatureRecord
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
scope: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
scope: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for LangSysRecord
[src]
type Args = ReadScope<'a>
type HostType = LangSysRecord
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
scope: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
scope: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for LigatureSubst
[src]
type HostType = Self
type Args = LayoutCache<GSUB>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for MarkBasePos
[src]
type HostType = Self
type Args = LayoutCache<GPOS>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for MarkLigPos
[src]
type HostType = Self
type Args = LayoutCache<GPOS>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for MultipleSubst
[src]
type HostType = Self
type Args = LayoutCache<GSUB>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for PairSet
[src]
type Args = (ValueFormat, ValueFormat)
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for PairValueRecord
[src]
type Args = (ValueFormat, ValueFormat)
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
args: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for ScriptRecord
[src]
type Args = ReadScope<'a>
type HostType = ScriptRecord
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
scope: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
scope: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for CompositeGlyph
[src]
type Args = CompositeGlyphFlag
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
flags: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
flags: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for GlyfTable<'a>
[src]
type Args = &'a LocaTable<'a>
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
loca: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
loca: Self::Args
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for SimpleGlyph
[src]
type Args = u16
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
number_of_contours: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
number_of_contours: Self::Args
) -> Result<Self, ParseError>
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]
ctxt: &mut ReadCtxt<'a>,
(num_glyphs, index_to_loc_format): (usize, IndexToLocFormat)
) -> Result<Self, ParseError>
Read a loca
table from ctxt
num_glyphs
is the number of glyphs in the font. The value fornum_glyphs
is found in the ‘maxp’ table.index_to_loc_format
specifies whether the offsets in theloca
table are short or long. This value can be read from thehead
table.
impl<'a> ReadBinaryDep<'a> for Os2
[src]
type HostType = Self
type Args = usize
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
table_size: usize
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
table_size: usize
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for HmtxTable<'a>
[src]
type Args = (usize, usize)
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
(num_glyphs, num_h_metrics): (usize, usize)
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
(num_glyphs, num_h_metrics): (usize, usize)
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for SVGDocumentRecord<'a>
[src]
type Args = ReadScope<'a>
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
scope: ReadScope<'a>
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
scope: ReadScope<'a>
) -> Result<Self, ParseError>
impl<'a> ReadBinaryDep<'a> for TableDirectoryEntry
[src]
type Args = usize
type HostType = Self
fn read_dep(ctxt: &mut ReadCtxt<'a>, offset: usize) -> Result<Self, ParseError>
[src]
impl<'a> ReadBinaryDep<'a> for ValueRecord
[src]
type Args = ValueFormat
type HostType = Self
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
args: ValueFormat
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
args: ValueFormat
) -> Result<Self, ParseError>
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = T::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
(): Self::Args
) -> Result<Self::HostType, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
(): Self::Args
) -> Result<Self::HostType, ParseError>
impl<'a, T: LayoutTableType> ReadBinaryDep<'a> for ChainContextLookup<T>
[src]
type HostType = Self
type Args = LayoutCache<T>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
impl<'a, T: LayoutTableType> ReadBinaryDep<'a> for ContextLookup<T>
[src]
type HostType = Self
type Args = LayoutCache<T>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
[src]
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>