pub struct UncompileContext<'a> {
pub lookups: IndexMap<SmolStr, LookupBlock>,
pub lookup_map: HashMap<(String, u16), SmolStr>,
pub language_systems: IndexMap<Tag, IndexSet<Tag>>,
pub unnamed_anchors: IndexMap<SmolStr, Vec<Anchor>>,
pub anchors: IndexMap<SmolStr, IndexMap<SmolStr, Anchor>>,
pub mark_classes: IndexMap<SmolStr, Vec<MarkClassDefinition>>,
pub named_classes: IndexMap<SmolStr, GlyphClass>,
pub features: IndexMap<SmolStr, Vec<LookupReferenceStatement>>,
/* private fields */
}Expand description
The context object that holds all the information we need when uncompiling a font.
Fields§
§lookups: IndexMap<SmolStr, LookupBlock>All the lookups we have uncompiled so far, keyed by their name.
lookup_map: HashMap<(String, u16), SmolStr>A mapping from (“sub”|“pos”, lookup_list_index) to the name of the lookup block we created for it. This is used to generate the correct lookup names in contextual lookups.
language_systems: IndexMap<Tag, IndexSet<Tag>>A mapping from script tags to the language system tags that are present in the font.
unnamed_anchors: IndexMap<SmolStr, Vec<Anchor>>Anchors on a glyph which we haven’t worked out what they should be called. class -> glyphname -> anchor
anchors: IndexMap<SmolStr, IndexMap<SmolStr, Anchor>>Anchors on a glyph which we have worked out what they should be called.
mark_classes: IndexMap<SmolStr, Vec<MarkClassDefinition>>Mark classes, indexed by class name.
named_classes: IndexMap<SmolStr, GlyphClass>Named glyph classes, indexed by class name.
features: IndexMap<SmolStr, Vec<LookupReferenceStatement>>Features, indexed by feature name.
Implementations§
Source§impl<'a> UncompileContext<'a>
impl<'a> UncompileContext<'a>
pub fn uncompile_chain_sequence_context<T: SubOrPos>( &mut self, chainsequence: ChainedSequenceContext<'_>, sub_or_pos: T, ) -> Result<Vec<ChainedContextStatement<T>>, ReadError>
Auto Trait Implementations§
impl<'a> Freeze for UncompileContext<'a>
impl<'a> RefUnwindSafe for UncompileContext<'a>
impl<'a> Send for UncompileContext<'a>
impl<'a> Sync for UncompileContext<'a>
impl<'a> Unpin for UncompileContext<'a>
impl<'a> UnsafeUnpin for UncompileContext<'a>
impl<'a> UnwindSafe for UncompileContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.