从网络和商店下载字体.ttf文件在iPhone上 [英] Download font .ttf file from web and store on iPhone

查看:448
本文介绍了从网络和商店下载字体.ttf文件在iPhone上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以从web下载.ttf文件并将其存储在iPhone上。然后使用它为标签和所有其他东西?因为我的客户端想要从数据库控制字体,不想只是将字体拖放到xcode项目。

Is it possible to download .ttf file from web and store it on iPhone. Then use that for for labels and all other stuff ? Because my client want to control fonts from database and don't want to just drop fonts to xcode project right away.

因此,将来如果他想要更改字体,他将向数据库添加新字体,应用程序将识别Web上的新字体(这已经完成了图像,而不是问题),下载并使用字体。

So in future if he wants to change font, he will add new font to database, app will recognize new font on web (thats already done with images, not a problem), download it and use as font.

谢谢。

推荐答案

字体必须在应用程序的plist中设置,并且该文件在运行时无法更改,因此您需要使用已添加到其中的字体来编译项目。

The fonts have to be set in the plist of your app, and that file cannot be changed during runtime, so you need to compile your project with the fonts already added to it.

你必须用其他方式来实现它。

You'll have to think in other way of implementing it.

这篇关于从网络和商店下载字体.ttf文件在iPhone上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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