ios应用程序可以根据需要下载以下字体 [英] ios apps can download the following fonts if necessary

查看:129
本文介绍了ios应用程序可以根据需要下载以下字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里的iOS 7字体列表中, http://support.apple.com/kb/HT5878 ,在底部有一个标题为应用程序可以下载以下字体,如果需要的。



这是什么意思?
如何包含这些字体,这与包含自定义字体有何不同?

解决方案

这是一个几乎没有记录的功能,但似乎可以使用,不会让你的应用程序被拒绝。只是试图研究这个自己带来了我这个问题,没有别的。我能找到的所有文档都是示例代码,展示了如何使用它:下载字体


演示如何在iOS 6及更高版本上按需下载字体



在iOS 6上,我们增加了应用程序按需下载字体的功能。除了使用iOS 6安装的字体,应用程序还可以根据需要安装其他字体列表。


列出的字体已经获得Apple许可在iOS中使用,但是由于额外的磁盘空间使用,它们没有与标准的iOS固件捆绑在一起。我认为这将继续是苹果提供新字体(除非操作系统的用户界面的一部分使用它)。另外,与使用Info.plist中的 UIAppFonts 键添加字体不同,在下载字体后,它可用于所有应用程序使用。

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?

解决方案

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.

这篇关于ios应用程序可以根据需要下载以下字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆