From 5e908431df4bb7ea2f2312d0effca62c27dce1f5 Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Thu, 6 Jul 2023 07:52:44 -0400 Subject: [PATCH] Removed messages during font loading. --- Sources/SwiftMath/MathRender/MTFont.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/SwiftMath/MathRender/MTFont.swift b/Sources/SwiftMath/MathRender/MTFont.swift index 41a2d51..afc1b5d 100644 --- a/Sources/SwiftMath/MathRender/MTFont.swift +++ b/Sources/SwiftMath/MathRender/MTFont.swift @@ -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!)