summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-library/src/math/fragment.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-library/src/math/fragment.rs b/crates/typst-library/src/math/fragment.rs
index f4efa7f6..8baea913 100644
--- a/crates/typst-library/src/math/fragment.rs
+++ b/crates/typst-library/src/math/fragment.rs
@@ -470,13 +470,13 @@ pub enum GlyphwiseSubsts<'a> {
impl<'a> GlyphwiseSubsts<'a> {
pub fn new(gsub: LayoutTable<'a>, feature: Feature) -> Option<Self> {
- let ssty = gsub
+ let table = gsub
.features
.find(feature.tag)
.and_then(|feature| feature.lookup_indices.get(0))
.and_then(|index| gsub.lookups.get(index))?;
- let ssty = ssty.subtables.get::<SubstitutionSubtable>(0)?;
- match ssty {
+ let table = table.subtables.get::<SubstitutionSubtable>(0)?;
+ match table {
SubstitutionSubtable::Single(single_glyphs) => {
Some(Self::Single(single_glyphs))
}