use truetype::GlyphID;
table! {
#[doc = "Alternates."]
pub Alternates { count (u16), glyph_ids (Vec<GlyphID>) |this, tape| { tape.take_given(this.count as usize)
},
}
}
table! {
#[doc = "A ligature."]
pub Ligature { glyph_id (GlyphID), component_count (u16 ), component_ids (Vec<GlyphID>) |this, tape| { if this.component_count == 0 {
raise!("found a malformed ligature substitution");
}
tape.take_given(this.component_count as usize - 1)
},
}
}
table! {
@position
#[doc = "Ligatures."]
pub Ligatures { count (u16), offsets (Vec<u16>) |this, tape, _| { tape.take_given(this.count as usize)
},
records (Vec<Ligature>) |this, tape, position| {
jump_take!(tape, position, this.count, this.offsets)
},
}
}
table! {
#[doc = "A sequence."]
pub Sequence { count (u16), glyph_ids (Vec<GlyphID>) |this, tape| { tape.take_given(this.count as usize)
},
}
}