Updates to FontDescriptors

This commit is contained in:
Stuart Breckenridge
2022-01-21 08:59:23 +08:00
parent 4c734d9ba3
commit fe73d95df8

View File

@@ -224,7 +224,7 @@ extension NSAttributedString {
#if canImport(AppKit)
let features: [FontDescriptor.FeatureKey: Any] = [.typeIdentifier: kVerticalPositionType, .selectorIdentifier: forSuperscript ? kSuperiorsSelector : kInferiorsSelector]
#else
let features: [FontDescriptor.FeatureKey: Any] = [.featureIdentifier: kVerticalPositionType, .typeIdentifier: forSuperscript ? kSuperiorsSelector : kInferiorsSelector]
let features: [FontDescriptor.FeatureKey: Any] = [.type: kVerticalPositionType, .selector: forSuperscript ? kSuperiorsSelector : kInferiorsSelector]
#endif
return features
}