Unable to install font system-wide

Hi,

I am planning to bring my fonts to iOS. However, it can only works on app but not system-wide. I did watch the WWDC video but have no idea how it works (no sample code/project).

Sample Code:

let fontURLs = [Bundle.main.url(forResource: "File", withExtension: "otf")!] as CFArray

CTFontManagerRegisterFontURLs(fontURLs, .none, true) { ...

Thank you.

Answered by DTS Engineer in 789487022

Configuring custom fonts provides more details about how to contribute custom fonts for systemwide use. You might take a look, and if that doesn't help, post your concrete question to see if folks here can help.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Configuring custom fonts provides more details about how to contribute custom fonts for systemwide use. You might take a look, and if that doesn't help, post your concrete question to see if folks here can help.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

I checked the doc again. Seems it is impossible to change to system default font, right?

Accepted Answer

That's right.

Unable to install font system-wide
 
 
Q