Font weight constants are not exposed publicly in CoreText
| Originator: | jake.petroules | ||
| Number: | rdar://26109857 | Date Originated: | 05-May-2016 02:03 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Enhancement | Reproducible: | Always |
Both AppKit and UIKit provide a series of constants (introduced in OS X 10.11 and iOS 8.2) called NSFontWeightXXX and UIFontWeightXXX. AppKit and UIKit internally retrieve these values from a series of constants exported from the CoreText framework (kCTFontWeightXXX). However, the CoreText constants are not provided in the CoreText headers despite actually existing. This creates an inconvenience for cross platform code using these values since two implementations must be provided for OS X, and UIKit platforms (iOS, tvOS). Please document the CoreText constants and provide them publicly in the CoreText headers.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!