diff --git a/Cargo.toml b/Cargo.toml index eef82a9..e7a4b57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "core-text" -version = "5.0.1" +version = "6.0.0" authors = ["The Servo Project Developers"] description = "Bindings to the Core Text framework." license = "MIT/Apache-2.0" repository = "https://github.com/servo/core-text-rs" [features] -default = [] -# For OS X 10.7 compat, use this feature. It will exclude some things -lion = [] +default = ["mountainlion"] +# For OS X 10.7 compat, exclude this feature. It will exclude some things from +# the exposed APIs in the crate. +mountainlion = [] [dependencies] libc = "0.2" diff --git a/src/font.rs b/src/font.rs index b52b354..d0305e7 100644 --- a/src/font.rs +++ b/src/font.rs @@ -379,7 +379,7 @@ pub fn debug_font_traits(font: &CTFont) { // println!("kCTFontSlantTrait: {}", traits.normalized_slant()); } -#[cfg(not(feature = "lion"))] +#[cfg(feature = "mountainlion")] pub fn cascade_list_for_languages(font: &CTFont, language_pref_list: &CFArray) -> CFArray { unsafe { let font_collection_ref = @@ -464,7 +464,7 @@ extern { fn CTFontCopyName(font: CTFontRef, nameKey: CFStringRef) -> CFStringRef; //fn CTFontCopyLocalizedName(font: CTFontRef, nameKey: CFStringRef, // language: *CFStringRef) -> CFStringRef; - #[cfg(not(feature = "lion"))] + #[cfg(feature = "mountainlion")] fn CTFontCopyDefaultCascadeListForLanguages(font: CTFontRef, languagePrefList: CFArrayRef) -> CFArrayRef;