How does one get all characters of the font with CTFontCopyCharacterSet() in Swift? ... for macOS?
CTFontCopyCharacterSet()
The issue occured when implementing the approach from an
You can do something like this.
let cs = CTFontCopyCharacterSet(font) as NSCharacterSet let bitmapRepresentation = cs.bitmapRepresentation
The format of the bitmap is defined in the reference page for CFCharacterSetCreateWithBitmapRepresentation