We make a font creation app. Users draw their own fonts, and our server generates an OTF for each of them. On iPhone and iPad we currently ask users to install a configuration profile for each font. We'd like the app to install these fonts itself with the Fonts capability (com.apple.developer.user-fonts = system-installation).
Because On-Demand Resources are deprecated in iOS 27, we tested Background Assets as the delivery path. The download works, but system-wide registration is rejected.
Setup
- iPad Pro 12.9-inch (5th generation), iPadOS 26.5.2 and 27.2.1 (same results), Xcode 27.0 (27A266a)
- Self-hosted managed asset pack:
BAHasManagedAssetPacks= YES,BAUsesAppleHosting= NO, downloader extension adoptingManagedDownloaderExtension, served locally byxcrun ba-serve - The same OTF, renamed per source, registered like this:
CTFontManagerRegisterFontURLs([url] as CFArray, .persistent, true) { @Sendable errors, done in
return true
}
Results
- App bundle: the install prompt appears, and the font shows up in Settings > General > Fonts.
- File downloaded with
URLSessioninto Documents:CTFontManagerErrorDomain306. - File from the asset pack, via
AssetPackManager.shared.ensureLocalAvailability(of:requireLatestVersion:)and thenurl(for:): the download succeeds, thenCTFontManagerErrorDomain306.
The error says: "The file is not in an allowed location. It must be either in the application's bundle or an on-demand resource." The asset pack file resolves to /private/var/mobile/Containers/Data/InternalDaemon/<UUID>/Library/Caches/<bundle ID>/Staging/Unlocalized/Fonts/<name>.otf.
The iOS 27 SDK header (CTFontManagerErrors.h) still describes error 306 this way, and "Configuring custom fonts" still lists only the app bundle and On-Demand Resources. We only tested self-hosted packs, but thread 808036 reports the same problem with Apple-hosted packs.
Questions
- Will asset packs from Background Assets (Apple-hosted or self-hosted) become an allowed source for system-wide font installation, now that On-Demand Resources are deprecated?
- For fonts that are created per user after the app ships, is there any supported way for a font provider app to install them system-wide? Or is a configuration profile the only option?
Feedback: FB25840867 (includes a sample project)
Related: https://developer.apple.com/forums/thread/808036
Thanks for asking, and for comparing all three sources with the same font before writing.
I can't comment on future releases. The issue you reported in FB25840867 is open and under investigation. Please continue to test your software in release and pre-release versions of system software made available to you through your developer.apple.com account. When you do, add details about that into your bug report to keep it up to date. Please see developer.apple.com/download.
The documentation matches what you found. Configuring custom fonts says "You must store installable fonts in the app bundle or deliver them using On-Demand Resources, because the system prohibits an app from installing arbitrary fonts." On-Demand Resources are deprecated in iOS 27, but the article lists them as the way to deliver installable fonts outside the app bundle.
For fonts created per user after the app ships, neither source fits. The NSBundleResourceRequest documentation describes On-Demand Resources as "content hosted on the App Store" that "You identify ... during development." So I don't know of a supported way for an app to install those fonts system-wide. The Font payload in a configuration profile, which you use today, is available for them.
Installing fonts that an app creates for each user is a separate request from FB25840867. If it matters to your app, please file an enhancement request using Feedback Assistant that describes your font creation workflow. If you file the request, please post the Feedback number here so we can make sure it gets routed to the right team.
Please note that filing an enhancement request does not guarantee Apple will add any requested functionality to Apple products in the future. However, with that said, filing an enhancement request is a good way to get your ideas in front of the folks who make decisions about that sort of thing.