Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios apps can download the following fonts if necessary

Tags:

In the iOS 7 font list located here, http://support.apple.com/kb/HT5878, there is a section at the bottom with the heading "apps can download the following fonts if necessary".

What does this mean? How does one include these fonts, and how is this different than including custom fonts?

like image 858
pfue Avatar asked Nov 04 '13 20:11

pfue


People also ask

Can you download fonts on iOS?

You can download fonts from the App Store app , then use them in documents you create on iPhone. After you download an app containing fonts from the App Store, open the app to install the fonts. To manage installed fonts, go to Settings > General, then tap Fonts.

What apps install fonts on iPhone?

One supported font app worth trying is Font Diner(Opens in a new window), which has one font set free for personal use, while the others will each cost $4.99 a year to use. Still, the free Silverware font set does include a healthy selection of fonts. Tap the Activate button for the font set you want, then tap Install.

What app do I need to download fonts?

To install a custom font on Android, obtain the TTF file of the font you wish to use and also download the zFont app. Use the zFont app to install the TTF. It may require some prerequisites and the app will help you do it.

Can I install custom fonts on iOS 13?

Apple added the option to install custom fonts and use them in different apps on iOS 13. The rollout has been a bit confusing, with Apple announcing partnerships with vendors such as Adobe, but also limiting the feature to work with only certain apps. Nonetheless, you can now download and install custom fonts on your iPhone.

What fonts are available in the App Store?

You have nearly a hundred options to choose from, including Times New Roman, Arial, Courier, Georgia, Helvetica Neue, Verdana, and Marker Felt. If you download any custom fonts from the App Store, they'll appear in this list.

How do I download fonts to my iPhone?

You can download fonts from the App Store app , then use them in documents you create on iPhone. After you download an app containing fonts from the App Store, open the app to install the fonts. To manage installed fonts, go to Settings > General, then tap Fonts.

How do I install fonts on my Device?

After you download an app containing fonts from the App Store, open the app to install the fonts. To manage installed fonts, go to Settings > General, then tap Fonts. Helpful?


2 Answers

This is interesting, it's an almost undocumented feature, but it seems ok to use and won't get your app rejected. Just trying to research this myself brought me to this question and not much else. All I could find that was documented is sample code showing how to use it: DownloadFont.

Demonstrates how to download fonts on demand on iOS 6 and later.

On iOS 6, we have added the capability for applications to download fonts on demand. Besides the fonts installed with iOS 6, applications can install a list of additional fonts as necessary.

The fonts listed are already licensed by Apple for use in iOS, however they aren't bundled with the standard iOS firmware due to the extra disk space usage. I would assume that this will continue to be how Apple provides new fonts (unless a part of the OS's UI uses it). Additionally, unlike adding fonts using the UIAppFonts key in your Info.plist, after the font is downloaded, it is available for all apps to use.

like image 127
kirb Avatar answered Oct 21 '22 15:10

kirb


Here's a simple example on how to asynchronously download a font and set it to a UITextView.

- (void)asynchronouslySetFontName:(NSString *)fontName toTextView:(UITextView *)textView {
    CGFloat size = 24.0f;
    UIFont *font = [UIFont fontWithName:fontName size:size];

    if (font && ([font.fontName compare:fontName] == NSOrderedSame || [font.familyName compare:fontName] == NSOrderedSame)) {
        textView.font = font;
        return;
    }

    NSMutableDictionary *attrs = [NSMutableDictionary dictionaryWithObject:fontName forKey:kCTFontNameAttribute];
    CTFontDescriptorRef desc = CTFontDescriptorCreateWithAttributes((__bridge CFDictionaryRef)attrs);

    NSMutableArray *descs = [NSMutableArray array];
    [descs addObject:(__bridge id)desc];
    CFRelease(desc);

    __weak UITextView *weakTextView = textView;

    CTFontDescriptorMatchFontDescriptorsWithProgressHandler((__bridge CFArrayRef)descs, NULL,  ^(CTFontDescriptorMatchingState state, CFDictionaryRef progressParameter) {
        if (state == kCTFontDescriptorMatchingDidFinish) {
            dispatch_async(dispatch_get_main_queue(), ^{
                weakTextView.font = [UIFont fontWithName:fontName size:size];
            });
        }

        return YES;
    });
}

And here's a list of all the downloadable fonts. http://iosfontlist.com

like image 35
cnotethegr8 Avatar answered Oct 21 '22 13:10

cnotethegr8