home-assistant / Iconic

:art: Auto-generated icon font library for iOS, watchOS and tvOS
Apache License 2.0
1.58k stars 86 forks source link

IconsFileParser failed to parse some ttf file #27

Closed connectdotz closed 8 years ago

connectdotz commented 8 years ago

generated an icon file from icoMoon, the fontBook opened it fine but iconFileParser failed to parse it. Took a while to find the problem because it failed silently....

Looks like the culprit is in IconsFileParser.parseFile() where it tried to get CGFont from CTFont with CGFontCreateWithFontName(fontName), which returns nil so it returns without any warning...