read_fonts

Trait FontRead

source
pub trait FontRead<'a>: Sized {
    // Required method
    fn read(data: FontData<'a>) -> Result<Self, ReadError>;
}
Expand description

A type that can be read from raw table data.

This trait is implemented for all font tables that are self-describing: that is, tables that do not require any external state in order to interpret their underlying bytes. (Tables that require external state implement FontReadWithArgs instead)

Required Methods§

source

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation.

In the case of a table, this method is responsible for ensuring the input data is consistent: this means ensuring that any versioned fields are present as required by the version, and that any array lengths are not out-of-bounds.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> FontRead<'a> for read_fonts::tables::aat::Lookup<'a>

source§

impl<'a> FontRead<'a> for BaseCoord<'a>

source§

impl<'a> FontRead<'a> for IndexSubtable<'a>

source§

impl<'a> FontRead<'a> for CmapSubtable<'a>

source§

impl<'a> FontRead<'a> for ClipBox<'a>

source§

impl<'a> FontRead<'a> for Paint<'a>

source§

impl<'a> FontRead<'a> for CaretValue<'a>

source§

impl<'a> FontRead<'a> for Glyph<'a>

source§

impl<'a> FontRead<'a> for AnchorTable<'a>

source§

impl<'a> FontRead<'a> for read_fonts::tables::gpos::ExtensionSubtable<'a>

source§

impl<'a> FontRead<'a> for PairPos<'a>

source§

impl<'a> FontRead<'a> for PositionLookup<'a>

source§

impl<'a> FontRead<'a> for SinglePos<'a>

source§

impl<'a> FontRead<'a> for read_fonts::tables::gsub::ExtensionSubtable<'a>

source§

impl<'a> FontRead<'a> for SingleSubst<'a>

source§

impl<'a> FontRead<'a> for SubstitutionLookup<'a>

source§

impl<'a> FontRead<'a> for Ift<'a>

source§

impl<'a> FontRead<'a> for ChainedSequenceContext<'a>

source§

impl<'a> FontRead<'a> for ClassDef<'a>

source§

impl<'a> FontRead<'a> for Condition<'a>

source§

impl<'a> FontRead<'a> for CoverageTable<'a>

source§

impl<'a> FontRead<'a> for DeviceOrVariationIndex<'a>

source§

impl<'a> FontRead<'a> for SequenceContext<'a>

source§

impl<'a> FontRead<'a> for FdSelect<'a>

source§

impl<'a> FontRead<'a> for AxisValue<'a>

source§

impl<'a> FontRead<'a> for DeltaSetIndexMap<'a>

source§

impl<'a> FontRead<'a> for FontData<'a>

source§

impl<'a> FontRead<'a> for StateTable<'a>

source§

impl<'a> FontRead<'a> for SegmentMaps<'a>

source§

impl<'a> FontRead<'a> for Cff2<'a>

source§

impl<'a> FontRead<'a> for Cff<'a>

source§

impl<'a> FontRead<'a> for PString<'a>

source§

impl<'a> FontRead<'a> for ClassSubtable<'a>

source§

impl<'a> FontRead<'a> for Lookup0<'a>

source§

impl<'a> FontRead<'a> for Lookup2<'a>

source§

impl<'a> FontRead<'a> for Lookup4<'a>

source§

impl<'a> FontRead<'a> for Lookup6<'a>

source§

impl<'a> FontRead<'a> for Lookup8<'a>

source§

impl<'a> FontRead<'a> for Lookup10<'a>

source§

impl<'a> FontRead<'a> for RawBytes<'a>

source§

impl<'a> FontRead<'a> for RawWords<'a>

source§

impl<'a> FontRead<'a> for StateHeader<'a>

source§

impl<'a> FontRead<'a> for StxHeader<'a>

source§

impl<'a> FontRead<'a> for Ankr<'a>

source§

impl<'a> FontRead<'a> for GlyphDataEntry<'a>

source§

impl<'a> FontRead<'a> for Avar<'a>

source§

impl<'a> FontRead<'a> for Axis<'a>

source§

impl<'a> FontRead<'a> for Base<'a>

source§

impl<'a> FontRead<'a> for BaseCoordFormat1<'a>

source§

impl<'a> FontRead<'a> for BaseCoordFormat2<'a>

source§

impl<'a> FontRead<'a> for BaseCoordFormat3<'a>

source§

impl<'a> FontRead<'a> for BaseScript<'a>

source§

impl<'a> FontRead<'a> for BaseScriptList<'a>

source§

impl<'a> FontRead<'a> for BaseTagList<'a>

source§

impl<'a> FontRead<'a> for BaseValues<'a>

source§

impl<'a> FontRead<'a> for MinMax<'a>

source§

impl<'a> FontRead<'a> for IndexSubtable1<'a>

source§

impl<'a> FontRead<'a> for IndexSubtable2<'a>

source§

impl<'a> FontRead<'a> for IndexSubtable3<'a>

source§

impl<'a> FontRead<'a> for IndexSubtable4<'a>

source§

impl<'a> FontRead<'a> for IndexSubtable5<'a>

source§

impl<'a> FontRead<'a> for IndexSubtableArray<'a>

source§

impl<'a> FontRead<'a> for Cbdt<'a>

source§

impl<'a> FontRead<'a> for Cblc<'a>

source§

impl<'a> FontRead<'a> for Cff2Header<'a>

source§

impl<'a> FontRead<'a> for CffHeader<'a>

source§

impl<'a> FontRead<'a> for Cmap0<'a>

source§

impl<'a> FontRead<'a> for Cmap2<'a>

source§

impl<'a> FontRead<'a> for Cmap4<'a>

source§

impl<'a> FontRead<'a> for Cmap6<'a>

source§

impl<'a> FontRead<'a> for Cmap8<'a>

source§

impl<'a> FontRead<'a> for Cmap10<'a>

source§

impl<'a> FontRead<'a> for Cmap12<'a>

source§

impl<'a> FontRead<'a> for Cmap13<'a>

source§

impl<'a> FontRead<'a> for Cmap14<'a>

source§

impl<'a> FontRead<'a> for Cmap<'a>

source§

impl<'a> FontRead<'a> for DefaultUvs<'a>

source§

impl<'a> FontRead<'a> for NonDefaultUvs<'a>

source§

impl<'a> FontRead<'a> for Affine2x3<'a>

source§

impl<'a> FontRead<'a> for BaseGlyphList<'a>

source§

impl<'a> FontRead<'a> for ClipBoxFormat1<'a>

source§

impl<'a> FontRead<'a> for ClipBoxFormat2<'a>

source§

impl<'a> FontRead<'a> for ClipList<'a>

source§

impl<'a> FontRead<'a> for ColorLine<'a>

source§

impl<'a> FontRead<'a> for Colr<'a>

source§

impl<'a> FontRead<'a> for LayerList<'a>

source§

impl<'a> FontRead<'a> for PaintColrGlyph<'a>

source§

impl<'a> FontRead<'a> for PaintColrLayers<'a>

source§

impl<'a> FontRead<'a> for PaintComposite<'a>

source§

impl<'a> FontRead<'a> for PaintGlyph<'a>

source§

impl<'a> FontRead<'a> for PaintLinearGradient<'a>

source§

impl<'a> FontRead<'a> for PaintRadialGradient<'a>

source§

impl<'a> FontRead<'a> for PaintRotate<'a>

source§

impl<'a> FontRead<'a> for PaintRotateAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintScale<'a>

source§

impl<'a> FontRead<'a> for PaintScaleAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintScaleUniform<'a>

source§

impl<'a> FontRead<'a> for PaintScaleUniformAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintSkew<'a>

source§

impl<'a> FontRead<'a> for PaintSkewAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintSolid<'a>

source§

impl<'a> FontRead<'a> for PaintSweepGradient<'a>

source§

impl<'a> FontRead<'a> for PaintTransform<'a>

source§

impl<'a> FontRead<'a> for PaintTranslate<'a>

source§

impl<'a> FontRead<'a> for PaintVarLinearGradient<'a>

source§

impl<'a> FontRead<'a> for PaintVarRadialGradient<'a>

source§

impl<'a> FontRead<'a> for PaintVarRotate<'a>

source§

impl<'a> FontRead<'a> for PaintVarRotateAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintVarScale<'a>

source§

impl<'a> FontRead<'a> for PaintVarScaleAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintVarScaleUniform<'a>

source§

impl<'a> FontRead<'a> for PaintVarScaleUniformAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintVarSkew<'a>

source§

impl<'a> FontRead<'a> for PaintVarSkewAroundCenter<'a>

source§

impl<'a> FontRead<'a> for PaintVarSolid<'a>

source§

impl<'a> FontRead<'a> for PaintVarSweepGradient<'a>

source§

impl<'a> FontRead<'a> for PaintVarTransform<'a>

source§

impl<'a> FontRead<'a> for PaintVarTranslate<'a>

source§

impl<'a> FontRead<'a> for VarAffine2x3<'a>

source§

impl<'a> FontRead<'a> for VarColorLine<'a>

source§

impl<'a> FontRead<'a> for Cpal<'a>

source§

impl<'a> FontRead<'a> for Cvar<'a>

source§

impl<'a> FontRead<'a> for Ebdt<'a>

source§

impl<'a> FontRead<'a> for Eblc<'a>

source§

impl<'a> FontRead<'a> for Feat<'a>

source§

impl<'a> FontRead<'a> for Fvar<'a>

source§

impl<'a> FontRead<'a> for Gasp<'a>

source§

impl<'a> FontRead<'a> for AttachList<'a>

source§

impl<'a> FontRead<'a> for AttachPoint<'a>

source§

impl<'a> FontRead<'a> for CaretValueFormat1<'a>

source§

impl<'a> FontRead<'a> for CaretValueFormat2<'a>

source§

impl<'a> FontRead<'a> for CaretValueFormat3<'a>

source§

impl<'a> FontRead<'a> for Gdef<'a>

source§

impl<'a> FontRead<'a> for LigCaretList<'a>

source§

impl<'a> FontRead<'a> for LigGlyph<'a>

source§

impl<'a> FontRead<'a> for MarkGlyphSets<'a>

source§

impl<'a> FontRead<'a> for CompositeGlyph<'a>

source§

impl<'a> FontRead<'a> for Glyf<'a>

source§

impl<'a> FontRead<'a> for SimpleGlyph<'a>

source§

impl<'a> FontRead<'a> for AnchorFormat1<'a>

source§

impl<'a> FontRead<'a> for AnchorFormat2<'a>

source§

impl<'a> FontRead<'a> for AnchorFormat3<'a>

source§

impl<'a> FontRead<'a> for CursivePosFormat1<'a>

source§

impl<'a> FontRead<'a> for Gpos<'a>

source§

impl<'a> FontRead<'a> for MarkArray<'a>

source§

impl<'a> FontRead<'a> for MarkBasePosFormat1<'a>

source§

impl<'a> FontRead<'a> for MarkLigPosFormat1<'a>

source§

impl<'a> FontRead<'a> for MarkMarkPosFormat1<'a>

source§

impl<'a> FontRead<'a> for PairPosFormat1<'a>

source§

impl<'a> FontRead<'a> for PairPosFormat2<'a>

source§

impl<'a> FontRead<'a> for SinglePosFormat1<'a>

source§

impl<'a> FontRead<'a> for SinglePosFormat2<'a>

source§

impl<'a> FontRead<'a> for AlternateSet<'a>

source§

impl<'a> FontRead<'a> for AlternateSubstFormat1<'a>

source§

impl<'a> FontRead<'a> for Gsub<'a>

source§

impl<'a> FontRead<'a> for Ligature<'a>

source§

impl<'a> FontRead<'a> for LigatureSet<'a>

source§

impl<'a> FontRead<'a> for LigatureSubstFormat1<'a>

source§

impl<'a> FontRead<'a> for MultipleSubstFormat1<'a>

source§

impl<'a> FontRead<'a> for ReverseChainSingleSubstFormat1<'a>

source§

impl<'a> FontRead<'a> for Sequence<'a>

source§

impl<'a> FontRead<'a> for SingleSubstFormat1<'a>

source§

impl<'a> FontRead<'a> for SingleSubstFormat2<'a>

source§

impl<'a> FontRead<'a> for GlyphVariationDataHeader<'a>

source§

impl<'a> FontRead<'a> for Gvar<'a>

source§

impl<'a> FontRead<'a> for Head<'a>

source§

impl<'a> FontRead<'a> for Hhea<'a>

source§

impl<'a> FontRead<'a> for Hvar<'a>

source§

impl<'a> FontRead<'a> for IdStringData<'a>

source§

impl<'a> FontRead<'a> for MappingEntries<'a>

source§

impl<'a> FontRead<'a> for PatchMapFormat1<'a>

source§

impl<'a> FontRead<'a> for PatchMapFormat2<'a>

source§

impl<'a> FontRead<'a> for ChainedClassSequenceRule<'a>

source§

impl<'a> FontRead<'a> for ChainedClassSequenceRuleSet<'a>

source§

impl<'a> FontRead<'a> for ChainedSequenceContextFormat1<'a>

source§

impl<'a> FontRead<'a> for ChainedSequenceContextFormat2<'a>

source§

impl<'a> FontRead<'a> for ChainedSequenceContextFormat3<'a>

source§

impl<'a> FontRead<'a> for ChainedSequenceRule<'a>

source§

impl<'a> FontRead<'a> for ChainedSequenceRuleSet<'a>

source§

impl<'a> FontRead<'a> for CharacterVariantParams<'a>

source§

impl<'a> FontRead<'a> for ClassDefFormat1<'a>

source§

impl<'a> FontRead<'a> for ClassDefFormat2<'a>

source§

impl<'a> FontRead<'a> for ClassSequenceRule<'a>

source§

impl<'a> FontRead<'a> for ClassSequenceRuleSet<'a>

source§

impl<'a> FontRead<'a> for ConditionFormat1<'a>

source§

impl<'a> FontRead<'a> for ConditionFormat2<'a>

source§

impl<'a> FontRead<'a> for ConditionFormat3<'a>

source§

impl<'a> FontRead<'a> for ConditionFormat4<'a>

source§

impl<'a> FontRead<'a> for ConditionFormat5<'a>

source§

impl<'a> FontRead<'a> for ConditionSet<'a>

source§

impl<'a> FontRead<'a> for CoverageFormat1<'a>

source§

impl<'a> FontRead<'a> for CoverageFormat2<'a>

source§

impl<'a> FontRead<'a> for Device<'a>

source§

impl<'a> FontRead<'a> for FeatureList<'a>

source§

impl<'a> FontRead<'a> for FeatureTableSubstitution<'a>

source§

impl<'a> FontRead<'a> for FeatureVariations<'a>

source§

impl<'a> FontRead<'a> for LangSys<'a>

source§

impl<'a> FontRead<'a> for Script<'a>

source§

impl<'a> FontRead<'a> for ScriptList<'a>

source§

impl<'a> FontRead<'a> for SequenceContextFormat1<'a>

source§

impl<'a> FontRead<'a> for SequenceContextFormat2<'a>

source§

impl<'a> FontRead<'a> for SequenceContextFormat3<'a>

source§

impl<'a> FontRead<'a> for SequenceRule<'a>

source§

impl<'a> FontRead<'a> for SequenceRuleSet<'a>

source§

impl<'a> FontRead<'a> for SizeParams<'a>

source§

impl<'a> FontRead<'a> for StylisticSetParams<'a>

source§

impl<'a> FontRead<'a> for VariationIndex<'a>

source§

impl<'a> FontRead<'a> for Ltag<'a>

source§

impl<'a> FontRead<'a> for Maxp<'a>

source§

impl<'a> FontRead<'a> for Mvar<'a>

source§

impl<'a> FontRead<'a> for Name<'a>

source§

impl<'a> FontRead<'a> for Os2<'a>

source§

impl<'a> FontRead<'a> for Post<'a>

source§

impl<'a> FontRead<'a> for FdSelectFormat0<'a>

source§

impl<'a> FontRead<'a> for FdSelectFormat3<'a>

source§

impl<'a> FontRead<'a> for FdSelectFormat4<'a>

source§

impl<'a> FontRead<'a> for Index1<'a>

source§

impl<'a> FontRead<'a> for Index2<'a>

source§

impl<'a> FontRead<'a> for GlyphData<'a>

source§

impl<'a> FontRead<'a> for AxisValueFormat1<'a>

source§

impl<'a> FontRead<'a> for AxisValueFormat2<'a>

source§

impl<'a> FontRead<'a> for AxisValueFormat3<'a>

source§

impl<'a> FontRead<'a> for AxisValueFormat4<'a>

source§

impl<'a> FontRead<'a> for Stat<'a>

source§

impl<'a> FontRead<'a> for SVGDocumentList<'a>

source§

impl<'a> FontRead<'a> for Svg<'a>

source§

impl<'a> FontRead<'a> for ConditionList<'a>

source§

impl<'a> FontRead<'a> for MultiItemVariationData<'a>

source§

impl<'a> FontRead<'a> for MultiItemVariationStore<'a>

source§

impl<'a> FontRead<'a> for SparseVariationRegion<'a>

source§

impl<'a> FontRead<'a> for SparseVariationRegionList<'a>

source§

impl<'a> FontRead<'a> for Varc<'a>

source§

impl<'a> FontRead<'a> for DeltaSetIndexMapFormat0<'a>

source§

impl<'a> FontRead<'a> for DeltaSetIndexMapFormat1<'a>

source§

impl<'a> FontRead<'a> for ItemVariationData<'a>

source§

impl<'a> FontRead<'a> for ItemVariationStore<'a>

source§

impl<'a> FontRead<'a> for VariationRegionList<'a>

source§

impl<'a> FontRead<'a> for Vhea<'a>

source§

impl<'a> FontRead<'a> for Vorg<'a>

source§

impl<'a> FontRead<'a> for Vvar<'a>

source§

impl<'a> FontRead<'a> for TTCHeader<'a>

source§

impl<'a> FontRead<'a> for TableDirectory<'a>

source§

impl<'a, T> FontRead<'a> for VarLenArray<'a, T>

source§

impl<'a, T> FontRead<'a> for ExtendedStateTable<'a, T>

source§

impl<'a, T> FontRead<'a> for TypedLookup<'a, T>

source§

impl<'a, T> FontRead<'a> for ExtensionPosFormat1<'a, T>

source§

impl<'a, T> FontRead<'a> for ExtensionSubstFormat1<'a, T>

source§

impl<'a, T> FontRead<'a> for read_fonts::tables::layout::Lookup<'a, T>

source§

impl<'a, T> FontRead<'a> for LookupList<'a, T>

source§

impl<'a, T: AnyBitPattern + FixedSize> FontRead<'a> for StateEntry<T>