-
-
Save vikage/83c027dcabcbe9116fdf830b685d037b 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