Skip to content

Commit

Permalink
Removed messages during font loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriebling committed Jul 6, 2023
1 parent 71ff06c commit 5e90843
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftMath/MathRender/MTFont.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ public class MTFont {
/// So we first load a CGFont from the file and then convert it to a CTFont.
convenience init(fontWithName name: String, size:CGFloat) {
self.init()
print("Loading font \(name)")
//print("Loading font \(name)")
let bundle = MTFont.fontBundle
let fontPath = bundle.path(forResource: name, ofType: "otf")
let fontDataProvider = CGDataProvider(filename: fontPath!)
self.defaultCGFont = CGFont(fontDataProvider!)!
print("Num glyphs: \(self.defaultCGFont.numberOfGlyphs)")
//print("Num glyphs: \(self.defaultCGFont.numberOfGlyphs)")

self.ctFont = CTFontCreateWithGraphicsFont(self.defaultCGFont, size, nil, nil);

print("Loading associated .plist")
//print("Loading associated .plist")
let mathTablePlist = bundle.url(forResource:name, withExtension:"plist")
self.rawMathTable = NSDictionary(contentsOf: mathTablePlist!)
self.mathTable = MTFontMathTable(withFont:self, mathTable:rawMathTable!)
Expand Down

0 comments on commit 5e90843

Please sign in to comment.