Custom fonts since iPhone OS 3.2
来源:互联网 发布:淘宝运营大概多少提成 编辑:程序博客网 时间:2024/06/05 19:38
Finally iPhone OS 3.2 supports custom fonts. Here is a short summary what you have to do..
Supported font formats are ..
- TrueType-flavoured OpenType (extension .ttf) and
- PostScript-flavoured OpenType (extension .otf).
Ok what you have to do is simple ..
- just add the key UIAppFonts as array to your Info.plist
- add the *.ttf or *.otf files to your bundle
- insert the filenames as values to your UIAppFonts array
- Load the fonts with ..
// use the font name here, not the filenameUIFont *myCustomFont = [UIFont fontWithName:@"AnnabelScript" size:30];
Note: You can also use the fonts in your UIWebViews with font-tags or CSS.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
http://doli.at/2010/05/08/custom-fonts-ipad/
- Custom fonts since iPhone OS 3.2
- Xcode Loading custom fonts
- Fonts OS Design Development
- 38.VC(custom)-调用临时Fonts(随手代码)
- fonts
- iPhone OS Technologies
- iPhone OS Technologies
- iphone os 3.0 游戏
- Iphone OS 的架构
- Lazarus支持 Iphone OS
- iPhone OS产品
- 了解iPhone OS框架
- 了解iPhone OS
- iPhone: Detecting user inactivity/idle time since last screen touch
- Create custom checkbox style button for iPhone
- Iphone开发笔记--Custom UITableVIewCell
- Custom HTTP Headers in iPhone UIWebView
- Custom iphone cases gGgn rITx 7bizM
- 可重入函数
- hdu 2463
- Facebook将如何拯救音乐产业
- Memory leaks using CVSListBox
- js回车提交事件
- Custom fonts since iPhone OS 3.2
- 单片机之中断
- learning jQuery 学习笔记二(+jQuery 1.4.1 API)--DOM遍历方法
- STL中map用法详解
- Android签名用keytool和jarsigner制作apk文件
- 给combox设置初始值
- SQL Server 四舍五入方法
- 如何导出一个未签名的APK文件?
- 树形DP zoj 3527