You could use CGFontCreateWithDataProvider()
followed by CTFontCreateWithGraphicsFont()
. Then you'd have a CTFont, which you can draw using Core Text.
As far as I know there's no way to get a UIFont from a custom font without either having the font in your app bundle and using the Info.plist method (i.e. not downloading it), or using private APIs.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…