Working on typesetting test failures.

This commit is contained in:
Michael Griebling
2023-01-14 15:30:44 -05:00
parent 2ee1cc0b19
commit fad14cfa3b
6 changed files with 187 additions and 223 deletions

View File

@@ -64,12 +64,12 @@ public class MTFont {
}
func get(nameForGlyph glyph:CGGlyph) -> String {
let name = self.defaultCGFont.name(for: glyph)
return name! as String
let name = defaultCGFont.name(for: glyph) as? String
return name!
}
func get(glyphWithName name:String) -> CGGlyph {
return self.defaultCGFont.getGlyphWithGlyphName(name: name as CFString)
return defaultCGFont.getGlyphWithGlyphName(name: name as CFString)
}
var fontSize:CGFloat {