Created
July 24, 2014 02:48
-
-
Save luosheng/ea8b0e91c9f0bd1e5245 to your computer and use it in GitHub Desktop.
Font with fallback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIFontDescriptor *fontDescriptor = [UIFontDescriptor fontDescriptorWithFontAttributes:@{ | |
UIFontDescriptorNameAttribute: @"SourceSansPro-Regular", | |
UIFontDescriptorCascadeListAttribute: | |
@[ | |
[UIFontDescriptor fontDescriptorWithFontAttributes:@{ UIFontDescriptorNameAttribute: @"Hiragino Sans GB W3" }] | |
] | |
}]; | |
}); | |
UIFont *font = [UIFont fontWithDescriptor:fontDescriptor size:pointSize]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍