UIFont
来源:互联网 发布:nginx ip会话保持 编辑:程序博客网 时间:2024/06/08 07:54
如果我们多处要对字体进行设置,我们可以用宏来做,这样方便我们管理和扩展。
// For text, messages, etc
#define DEFAULT_FONTSIZE 15
#define DEFAULT_FONT(s) [UIFont fontWithName:@"ArialMT" size:s]
#define DEFAULT_BOLDFONT(s) [UIFont fontWithName:@"Arial-BoldMT" size:s]
// For table cells
#define CELL_FONTSIZE 16
#define CELL_FONT(s) [UIFont fontWithName:@"Helvetica-Oblique" size:s]
#define CELL_BOLDFONT(s) [UIFont fontWithName:@"Helvetica-BoldOblique" size:s]
#define DEFAULT_FONTSIZE 15
#define DEFAULT_FONT(s) [UIFont fontWithName:@"ArialMT" size:s]
#define DEFAULT_BOLDFONT(s) [UIFont fontWithName:@"Arial-BoldMT" size:s]
// For table cells
#define CELL_FONTSIZE 16
#define CELL_FONT(s) [UIFont fontWithName:@"Helvetica-Oblique" size:s]
#define CELL_BOLDFONT(s) [UIFont fontWithName:@"Helvetica-BoldOblique" size:s]
-------------------------------------------------------------
正常:Helvetica
加粗:
"Helvetica-Bold"
"TimesNewRomanPS-BoldMT"
"Arial-BoldMT"
"CourierNewPS-BoldMT"
"Georgia-Bold"
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- uifont字体
- UIFont字体
- 10.UIFont
- UIFont详解
- UIFont 大全
- 字体UIFont
- UIFont && UIFontDescriptor
- UIFont FontName
- UIFont设置
- UIFont相关
- KMP又一小扩展 hdu1867
- 【解惑】 中断线程Interrupted的用处
- 获取当月的天数。
- 你不是真正的快乐---纪念即将完结的青春和陪伴我的阿星和星仔和星爷
- fckeditor组件使用---fckeditor调用的三种方法1
- UIFont
- uml的构成
- 受检异常和非受检异常
- PageControl实现页面之间的跳转
- 第十节 html5学习——web存储
- 筛选列表中的值
- 四元数与欧拉角之间的转换
- Sublime Text 2.0.1 简体中文版来了 技术帝的最爱
- 第十一节 html5学习——应用程序缓存