Repository: servo/core-foundation-rs (language: rust)

Issue:
Add a kCTFontOrientationDefault alias for kCTFontDefaultOrientation
The value `kCTFontDefaultOrientation` has been renamed to `kCTFontOrientationDefault` in the Apple headers, and the old name has been marked deprecated.


Discussion / hints:

Fix patch:
diff --git a/core-text/src/font_descriptor.rs b/core-text/src/font_descriptor.rs
index 0ade74cbd..e5506d216 100644
--- a/core-text/src/font_descriptor.rs
+++ b/core-text/src/font_descriptor.rs
@@ -182,9 +182,12 @@ impl TraitAccessors for CTFontTraits {
 * CTFontDescriptor.h
 */
 pub type CTFontOrientation = u32;
-pub const kCTFontDefaultOrientation: CTFontOrientation = 0;
-pub const kCTFontHorizontalOrientation: CTFontOrientation = 1;
-pub const kCTFontVerticalOrientation: CTFontOrientation = 2;
+pub const kCTFontDefaultOrientation: CTFontOrientation = 0; // deprecated since macOS 10.11, iOS 9
+pub const kCTFontOrientationDefault: CTFontOrientation = 0; // introduced in macOS 10.8, iOS 6
+pub const kCTFontHorizontalOrientation: CTFontOrientation = 1; // deprecated since macOS 10.11, iOS 9
+pub const kCTFontOrientationHorizontal: CTFontOrientation = 1; // introduced in macOS 10.8, iOS 6
+pub const kCTFontVerticalOrientation: CTFontOrientation = 2; // deprecated since macOS 10.11, iOS 9
+pub const kCTFontOrientationVertical: CTFontOrientation = 2; // introduced in macOS 10.8, iOS 6
 
 pub type CTFontPriority = u32;
 pub const kCTFontPrioritySystem: CTFontPriority = 10000;


Test patch: