Apple Developer-注册应用程序ID的“字体”功能是什么? [英] Apple Developer - What is the 'Fonts' Capability under Register an App ID for?

查看:357
本文介绍了Apple Developer-注册应用程序ID的“字体”功能是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Apple Developer帐户中注册一个应用程序ID,并在功能部分的字体下看到。我在 on 上找到的意思是'字体:字体安装允许您的应用具有用户许可,以安装和使用自定义字体。

I need to register an App ID in my Apple Developer account and saw under the 'Capabilities' section 'Fonts'. Which I found on means 'Fonts: Font Installation allows your app, with user permission, to install and use custom fonts."

我在方框中打勾,认为这与在我的应用程序中使用自定义字体有关,但在Xcode中收到警告消息:

I ticked that box thinking that it's related to using custom fonts in my app but got a warning message in Xcode:

警告:设置配置文件 iOS团队设置配置文件: MyAppName 我的捆绑包ID 包含不是的权利在权利文件中:com.apple.developer.user-fonts。要使用这些权利,请将它们添加到您的权利文件中。否则,请从您的配置文件中删除未使用的权利。 (在目标 MyAppName 中)。'

'Waring: Provisioning profile "iOS Team Provisioning Profile: My Bundle ID for MyAppName contains entitlements that aren't in the entitlements file: com.apple.developer.user-fonts. To use these entitlements, add them to your entitlements file. Otherwise, remove unused entitlements from your provisioning profile. (in target MyAppName).'

更糟糕的是,我取消选中字体功能框以摆脱掉出现警告时,模态表示修改应用程序功能:添加或删除任何功能将使包括此应用程序ID的所有配置文件无效,并且必须重新生成以供将来使用。

The worse thing is after I untick the Fonts capabilities box in order to get rid of the warning, a modal says 'Modify App Capabilities: Adding or removing any capabilities will invalidate any provisioning profiles that include this App ID and they must be regenerated for future use.'

观看了此视频之后,我认为 证书,标识符和amp;下的字体个人资料>功能用于在系统范围内注册字体的能力。

After watching this video, I think 'Fonts' under 'Certificates, Identifiers & Profiles' > 'Capabilities' is for 'Ability to register fonts system-wide'. Whatever that means...

向应用程序页面添加自定义字体,但是在注册应用程序ID时未在功能下提及字体。
链接

'Adding a custom font to your app' page but doesn't mention the 'Fonts' under 'Capabilities' when Register an App ID. Link

我认为Fonts功能是新功能,因此它们的文档不一致。有谁知道您在什么情况下需要勾选字体功能框以及如何使用它?

I think the Fonts capabilities are new and that's why their documentation is inconsistent. Does anyone know in what circumstances do you need to tick that Fonts capabilities box and how to use it?

谢谢

推荐答案


有人知道您在什么情况下需要勾选字体功能框以及如何使用它吗?

Does anyone know in what circumstances do you need to tick that Fonts capabilities box and how to use it?

是的,在iOS 13中是新增功能,您的应用程序可以包含字体,并且可以通过调用CTFontManagerRegisterFontURLs使字体可用于所有用户的应用程序。这称为安装字体。您需要具备执行此操作的能力。您在问题中引用的视频的5:46解释了此功能。观看视频,它说明了所有相关内容。

Yes, new in iOS 13 your app can include fonts and can make them available to all the user’s apps by calling CTFontManagerRegisterFontURLs. This is called installing fonts. You need the capability to do that. The capability is explained at 5:46 of the video you cited in your question. Watch the video, it explains all about this.

您并不需要仅在自己的应用程序中包含和使用字体的权利。

You do not need the entitlement merely to include and use fonts within your own app.

这篇关于Apple Developer-注册应用程序ID的“字体”功能是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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