MoralCode / MetricTime

A decimal time display application for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"the operation could not be completed" error when loading fonts, even though the font loads anyway...

MoralCode opened this issue · comments

line 94 of ViewController.swift gives the following error when trying to load fonts:

Unable to load font: The operation couldn’t be completed. (com.apple.CoreText.CTFontManagerErrorDomain error 105 - Could not register the CGFont '<CGFont (0x145d232a0): Calculator>')

even though the font renders correctly on-screen anyways...

I suspect that all i need to load a font is just the timeDisplay?.font = UIFont(name: "Calculator", size: 32.0) code on line 56 and tall the fontDisplay() stuff isn't needed...

my suspicions were correct, the fontDisplay() function did nothing. issue resolved in commit 688d40b