Questions tagged [ctfont]
18 questions
0
votes
2 answers
What a difference between NSFont and CTFont and why CTFont hangs-up NSTextFieldCell?
I want to show fonts in NSTableView. If I use fonts inited by NSFont(name: fontName, size: size) everything is OK. But In this case I can use only fonts installed in system. So I made an NSFont Extension:
public extension NSFont {
static func…

Łukasz
- 773
- 5
- 23
0
votes
1 answer
How does CTFontGetAdvancesForGlyphs work?
The CoreText method CTFontGetAdvancesForGlyphs adds the advances for all glyphs of an array of such and returns the sum.
However, if the array consists only of 1 element:
var offset = CCTFontGetAdvancesForGlyphs(myFont, .default, &myGlyph, nil,…

MassMover
- 529
- 2
- 17
-1
votes
1 answer
iOS app crash with EXC_BAD_ACCESS
From crashlytics recently we got some crashes for our app with the below logs.Anyone else faced the same issue? Any help would be appreciated.
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at…

usersoi
- 11
- 3