Created
January 10, 2014 16:12
-
-
Save fannheyward/8357184 to your computer and use it in GitHub Desktop.
Offline custom fonts, via https://github.com/fdstevex/FDSFontDownloader/blob/master/FDSFontDownloader.m#L19-L24
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
NSArray *array = [[NSUserDefaults standardUserDefaults] valueForKey:@"fontURLs"]; | |
NSMutableArray *fontURLs = [NSMutableArray arrayWithArray:array]; | |
for (NSString *urlString in fontURLs) { | |
NSURL *url = [NSURL URLWithString:urlString]; | |
CTFontManagerRegisterFontsForURL((__bridge CFURLRef)url, kCTFontManagerScopeProcess, nil); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment