From f878168d807c69b7cb6579bf237e71f36cca3f2d Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Wed, 22 Feb 2023 10:45:15 -0500 Subject: [PATCH] Another variant test. --- Sources/SwiftMath/MathRender/MTFontMathTable.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftMath/MathRender/MTFontMathTable.swift b/Sources/SwiftMath/MathRender/MTFontMathTable.swift index 83b73f4..32ba143 100644 --- a/Sources/SwiftMath/MathRender/MTFontMathTable.swift +++ b/Sources/SwiftMath/MathRender/MTFontMathTable.swift @@ -203,7 +203,7 @@ class MTFontMathTable { func getVariantsForGlyph(_ glyph: CGGlyph, inDictionary variants:NSDictionary?) -> [NSNumber] { let glyphName = self.font!.get(nameForGlyph: glyph) - let variantGlyphs = variants![glyphName] as! NSArray + let variantGlyphs = variants![glyphName] as! NSDictionary var glyphArray = [NSNumber]() if variantGlyphs.count == 0 { // There are no extra variants, so just add the current glyph to it. @@ -225,7 +225,7 @@ class MTFontMathTable { func getLargerGlyph(_ glyph:CGGlyph) -> CGGlyph { let variants = _mathTable[kVertVariants] as! NSDictionary? let glyphName = self.font?.get(nameForGlyph: glyph) - let variantGlyphs = variants![glyphName!] as! NSArray + let variantGlyphs = variants![glyphName!] as! NSDictionary if variantGlyphs.count == 0 { // There are no extra variants, so just returnt the current glyph. return glyph