This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import CoreText | |
extension UIFont { | |
typealias Feature = (type: Int, selector: Int) | |
struct Features { | |
static var ProportionalNumbers: Feature = (kNumberSpacingType, kProportionalNumbersSelector) | |
static var AlternatePunctuation: Feature = (kCharacterAlternativesType, 1) // Magic! | |
// Add more... |