Skip to content

Instantly share code, notes, and snippets.

@yuanhao
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save yuanhao/2b2cd736b4e630c09052 to your computer and use it in GitHub Desktop.

Select an option

Save yuanhao/2b2cd736b4e630c09052 to your computer and use it in GitHub Desktop.
NSLocale.preferredLanguages()[0]
简体中文 zh-Hans
English en
繁体中文 zh-Hant
繁体中文香港 zh-HK
日本语 ja
韩国 ko
<CTFontDescriptor: 0x7fbeca6404e0>{attributes = <CFBasicHash 0x7fbecc9c7af0 [0x107bc6eb0]>{type = mutable dict, count = 8,
entries =>
0 : <CFString 0x1083336b0 [0x107bc6eb0]>{contents = "NSCTFontDesignLanguagesAttribute"} = (
"zh-Hant"
)
4 : <CFString 0x108333590 [0x107bc6eb0]>{contents = "NSFontVisibleNameAttribute"} = <CFString 0x7fbeccc6d6b0 [0x107bc6eb0]>{contents = "兰亭黑-繁 中黑"}
5 : <CFString 0x1083335b0 [0x107bc6eb0]>{contents = "NSFontFamilyAttribute"} = <CFString 0x7fbecc8bfda0 [0x107bc6eb0]>{contents = "Lantinghei TC"}
6 : <CFString 0x108333770 [0x107bc6eb0]>{contents = "NSCTFontDownloadableAttribute"} = <CFBoolean 0x107bc7920 [0x107bc6eb0]>{value = true}
7 : <CFString 0x108333a30 [0x107bc6eb0]>{contents = "NSCTFontLocalizedNamesForNonNormalizedAttribute"} = {
NSFontFaceAttribute = {
en = Demibold;
"zh-Hans" = "\U4e2d\U9ed1";
"zh-Hant" = "\U4e2d\U9ed1";
};
NSFontFamilyAttribute = {
en = "Lantinghei TC";
"zh-Hans" = "\U5170\U4ead\U9ed1-\U7e41";
"zh-Hant" = "\U862d\U4ead\U9ed1-\U7e41";
};
NSFontVisibleNameAttribute = {
en = "Lantinghei TC Demibold";
"zh-Hans" = "\U5170\U4ead\U9ed1-\U7e41 \U4e2d\U9ed1";
"zh-Hant" = "\U862d\U4ead\U9ed1-\U7e41 \U4e2d\U9ed1 ";
};
}
8 : <CFString 0x108333550 [0x107bc6eb0]>{contents = "NSFontNameAttribute"} = <CFString 0x7fbecc8e5090 [0x107bc6eb0]>{contents = "FZLTZHB--B51-0"}
9 : <CFString 0x1083335d0 [0x107bc6eb0]>{contents = "NSFontFaceAttribute"} = <CFString 0x7fbeccc678c0 [0x107bc6eb0]>{contents = "Demibold"}
10 : <CFString 0x108333790 [0x107bc6eb0]>{contents = "NSCTFontDownloadedAttribute"} = <CFBoolean 0x107bc7920 [0x107bc6eb0]>{value = true}
}
>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment