Another variant test.
This commit is contained in:
@@ -203,7 +203,7 @@ class MTFontMathTable {
|
|||||||
|
|
||||||
func getVariantsForGlyph(_ glyph: CGGlyph, inDictionary variants:NSDictionary?) -> [NSNumber] {
|
func getVariantsForGlyph(_ glyph: CGGlyph, inDictionary variants:NSDictionary?) -> [NSNumber] {
|
||||||
let glyphName = self.font!.get(nameForGlyph: glyph)
|
let glyphName = self.font!.get(nameForGlyph: glyph)
|
||||||
let variantGlyphs = variants![glyphName] as! NSArray
|
let variantGlyphs = variants![glyphName] as! NSDictionary
|
||||||
var glyphArray = [NSNumber]()
|
var glyphArray = [NSNumber]()
|
||||||
if variantGlyphs.count == 0 {
|
if variantGlyphs.count == 0 {
|
||||||
// There are no extra variants, so just add the current glyph to it.
|
// There are no extra variants, so just add the current glyph to it.
|
||||||
@@ -225,7 +225,7 @@ class MTFontMathTable {
|
|||||||
func getLargerGlyph(_ glyph:CGGlyph) -> CGGlyph {
|
func getLargerGlyph(_ glyph:CGGlyph) -> CGGlyph {
|
||||||
let variants = _mathTable[kVertVariants] as! NSDictionary?
|
let variants = _mathTable[kVertVariants] as! NSDictionary?
|
||||||
let glyphName = self.font?.get(nameForGlyph: glyph)
|
let glyphName = self.font?.get(nameForGlyph: glyph)
|
||||||
let variantGlyphs = variants![glyphName!] as! NSArray
|
let variantGlyphs = variants![glyphName!] as! NSDictionary
|
||||||
if variantGlyphs.count == 0 {
|
if variantGlyphs.count == 0 {
|
||||||
// There are no extra variants, so just returnt the current glyph.
|
// There are no extra variants, so just returnt the current glyph.
|
||||||
return glyph
|
return glyph
|
||||||
|
|||||||
Reference in New Issue
Block a user