http://blog.csdn.net/ym19860303/article/details/8462450
http://www.himigame.com/iphone-cocos2d/444.html
很多游戏中,便于开发就会直接采用Cocos2d提供的字体库来使用,但是因为提供的种类很多,那么Himi利用一些时间整理了57种字体样式,这些我想足够你用了;
不多说下面一起来看看吧:(每张图对应11种样式的字体,字体的名字就是其样式的名字)
-----------1------------------------
对应字体样式源码:
- CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"AppleGothic"fontName:@"AppleGothic"fontSize:20];
- myLabel.position=ccp(70, 50);
- [self addChild:myLabel];
- CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"HiraKakuProN-W6"fontName:@"HiraKakuProN-W6"fontSize:20];
- myLabel2.position=ccp(100, 100);
- [self addChild:myLabel2];
- CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"HiraKakuProN-W3"fontName:@"HiraKakuProN-W3"fontSize:20];
- myLabel3.position=ccp(100, 150);
- [self addChild:myLabel3];
- CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"MarkerFelt-Thin"fontName:@"MarkerFelt-Thin"fontSize:20];
- myLabel4.position=ccp(100, 200);
- [self addChild:myLabel4];
- CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"STHeitiK-Medium"fontName:@"STHeitiK-Medium"fontSize:20];
- myLabel5.position=ccp(100, 250);
- [self addChild:myLabel5];
- CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"STHeitiK-Light"fontName:@"STHeitiK-Light"fontSize:20];
- myLabel6.position=ccp(100, 300);
- [self addChild:myLabel6];
- CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"TimesNewRomanPSMT"fontName:@"TimesNewRomanPSMT"fontSize:20];
- myLabel7.position=ccp(250, 50);
- [self addChild:myLabel7];
- CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"Helvetica-Oblique"fontName:@"Helvetica-Oblique"fontSize:20];
- myLabel8.position=ccp(350, 100);
- [self addChild:myLabel8];
- CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"Helvetica-BoldOblique"fontName:@"Helvetica-BoldOblique"fontSize:20];
- myLabel9.position=ccp(350, 150);
- [self addChild:myLabel9];
- CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"Helvetica"fontName:@"Helvetica"fontSize:20];
- myLabel10.position=ccp(250, 200);
- [self addChild:myLabel10];
- CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"Helvetica-Bold"fontName:@"Helvetica-Bold"fontSize:20];
- myLabel11.position=ccp(300, 250);
- [self addChild:myLabel11];
对应字体样式源码:
- CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"TimesNewRomanPS-BoldMT"fontName:@"TimesNewRomanPS-BoldMT"fontSize:20];
- myLabel.position=ccp(150, 50);
- [self addChild:myLabel];
- CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"TimesNewRomanPS-BoldItalicMT"fontName:@"TimesNewRomanPS-BoldItalicMT"fontSize:20];
- myLabel2.position=ccp(150, 100);
- [self addChild:myLabel2];
- CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"TimesNewRomanPS-ItalicMT"fontName:@"TimesNewRomanPS-ItalicMT"fontSize:20];
- myLabel3.position=ccp(200, 150);
- [self addChild:myLabel3];
- CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Verdana-Bold"fontName:@"Verdana-Bold"fontSize:20];
- myLabel4.position=ccp(100, 200);
- [self addChild:myLabel4];
- CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"Verdana-BoldItalic"fontName:@"Verdana-BoldItalic"fontSize:20];
- myLabel5.position=ccp(130, 250);
- [self addChild:myLabel5];
- CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"Verdana"fontName:@"Verdana"fontSize:20];
- myLabel6.position=ccp(100, 300);
- [self addChild:myLabel6];
- CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"Verdana-Italic"fontName:@"Verdana-Italic"fontSize:20];
- myLabel7.position=ccp(370, 50);
- [self addChild:myLabel7];
- CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"Georgia-Bold"fontName:@"Georgia-Bold"fontSize:20];
- myLabel8.position=ccp(400, 100);
- [self addChild:myLabel8];
- CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"Georgia"fontName:@"Georgia"fontSize:20];
- myLabel9.position=ccp(400, 150);
- [self addChild:myLabel9];
- CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"Georgia-BoldItalic"fontName:@"Georgia-BoldItalic"fontSize:20];
- myLabel10.position=ccp(300, 200);
- [self addChild:myLabel10];
- CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"Georgia-Italic"fontName:@"Georgia-Italic"fontSize:20];
- myLabel11.position=ccp(350, 250);
- [self addChild:myLabel11];
对应字体样式源码:
- CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"ArialRoundedMTBold"fontName:@"ArialRoundedMTBold"fontSize:20];
- myLabel.position=ccp(150, 50);
- [self addChild:myLabel];
- CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"TrebuchetMS-Italic"fontName:@"TrebuchetMS-Italic"fontSize:20];
- myLabel2.position=ccp(150, 100);
- [self addChild:myLabel2];
- CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"TrebuchetMS"fontName:@"TrebuchetMS"fontSize:20];
- myLabel3.position=ccp(200, 150);
- [self addChild:myLabel3];
- CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Trebuchet-BoldItalic"fontName:@"Trebuchet-BoldItalic"fontSize:20];
- myLabel4.position=ccp(100, 200);
- [self addChild:myLabel4];
- CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"TrebuchetMS-Bold"fontName:@"TrebuchetMS-Bold"fontSize:20];
- myLabel5.position=ccp(130, 250);
- [self addChild:myLabel5];
- CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"STHeitiTC-Light"fontName:@"STHeitiTC-Light"fontSize:20];
- myLabel6.position=ccp(100, 300);
- [self addChild:myLabel6];
- CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"STHeitiTC-Medium"fontName:@"STHeitiTC-Medium"fontSize:20];
- myLabel7.position=ccp(370, 50);
- [self addChild:myLabel7];
- CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"GeezaPro-Bold"fontName:@"GeezaPro-Bold"fontSize:20];
- myLabel8.position=ccp(400, 100);
- [self addChild:myLabel8];
- CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"GeezaPro"fontName:@"GeezaPro"fontSize:20];
- myLabel9.position=ccp(400, 150);
- [self addChild:myLabel9];
- CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"Courier"fontName:@"Courier"fontSize:20];
- myLabel10.position=ccp(300, 200);
- [self addChild:myLabel10];
- CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"Courier-BoldOblique"fontName:@"Courier-BoldOblique"fontSize:20];
- myLabel11.position=ccp(350, 250);
- [self addChild:myLabel11];
-----------4------------------------
对应字体样式源码:
- CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"Courier-Oblique"fontName:@"Courier-Oblique"fontSize:20];
- myLabel.position=ccp(150, 50);
- [self addChild:myLabel];
- CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"Courier-Bold"fontName:@"Courier-Bold"fontSize:20];
- myLabel2.position=ccp(150, 100);
- [self addChild:myLabel2];
- CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"ArialMT"fontName:@"ArialMT"fontSize:20];
- myLabel3.position=ccp(200, 150);
- [self addChild:myLabel3];
- CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Arial-BoldMT"fontName:@"Arial-BoldMT"fontSize:20];
- myLabel4.position=ccp(100, 200);
- [self addChild:myLabel4];
- CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"Arial-BoldItalicMT"fontName:@"Arial-BoldItalicMT"fontSize:20];
- myLabel5.position=ccp(130, 250);
- [self addChild:myLabel5];
- CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"Arial-ItalicMT"fontName:@"Arial-ItalicMT"fontSize:20];
- myLabel6.position=ccp(100, 300);
- [self addChild:myLabel6];
- CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"STHeitiJ-Medium"fontName:@"STHeitiJ-Medium"fontSize:20];
- myLabel7.position=ccp(370, 50);
- [self addChild:myLabel7];
- CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"STHeitiJ-Light"fontName:@"STHeitiJ-Light"fontSize:20];
- myLabel8.position=ccp(400, 100);
- [self addChild:myLabel8];
- CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"ArialHebrew"fontName:@"ArialHebrew"fontSize:20];
- myLabel9.position=ccp(400, 150);
- [self addChild:myLabel9];
- CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"ArialHebrew-Bold"fontName:@"ArialHebrew-Bold"fontSize:20];
- myLabel10.position=ccp(300, 200);
- [self addChild:myLabel10];
- CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"CourierNewPS-BoldMT"fontName:@"CourierNewPS-BoldMT"fontSize:20];
- myLabel11.position=ccp(350, 250);
- [self addChild:myLabel11];
-----------5------------------------
对应字体样式源码:
- CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"CourierNewPS-ItalicMT"fontName:@"CourierNewPS-ItalicMT"fontSize:20];
- myLabel.position=ccp(140, 50);
- [self addChild:myLabel];
- CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"CourierNewPS-BoldItalicMT"fontName:@"CourierNewPS-BoldItalicMT"fontSize:20];
- myLabel2.position=ccp(150, 100);
- [self addChild:myLabel2];
- CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"CourierNewPSMT"fontName:@"CourierNewPSMT"fontSize:20];
- myLabel3.position=ccp(200, 150);
- [self addChild:myLabel3];
- CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Thonburi-Bold"fontName:@"Thonburi-Bold"fontSize:20];
- myLabel4.position=ccp(100, 200);
- [self addChild:myLabel4];
- CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"AmericanTypewriter"fontName:@"AmericanTypewriter"fontSize:20];
- myLabel5.position=ccp(130, 250);
- [self addChild:myLabel5];
- CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"AmericanTypewriter-Bold"fontName:@"AmericanTypewriter-Bold"fontSize:20];
- myLabel6.position=ccp(200, 300);
- [self addChild:myLabel6];
- CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"STHeitiSC-Medium"fontName:@"STHeitiSC-Medium"fontSize:20];
- myLabel7.position=ccp(370, 50);
- [self addChild:myLabel7];
- CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"STHeitiSC-Light"fontName:@"STHeitiSC-Light"fontSize:20];
- myLabel8.position=ccp(400, 100);
- [self addChild:myLabel8];
- CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"HelveticaNeue"fontName:@"HelveticaNeue"fontSize:20];
- myLabel9.position=ccp(400, 150);
- [self addChild:myLabel9];
- CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"HelveticaNeue"fontName:@"HelveticaNeue"fontSize:20];
- myLabel10.position=ccp(300, 200);
- [self addChild:myLabel10];
- CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"HelveticaNeue-Bold"fontName:@"HelveticaNeue-Bold"fontSize:20];
- myLabel11.position=ccp(350, 250);
- [self addChild:myLabel11];
-----------6------------------------
对应字体样式源码:
- myLabel.position=ccp(90, 150);
- [self addChild:myLabel];
- CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"Zapfino"fontName:@"Zapfino"fontSize:20];
- myLabel2.position=ccp(250, 150);
- [self addChild:myLabel2];
- CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"~Himi整理~"fontName:@"Zapfino"fontSize:20];
- myLabel3.position=ccp(230, 220);
- [self addChild:myLabel3];
ok,太累了,哎~不过为了后期开发方便,所以也是值得的,分享给大家,希望大家支持下~
http://blog.csdn.net/ym19860303/article/details/8462450的更多相关文章
- http://blog.csdn.net/java2000_wl/article/details/8627874
http://blog.csdn.net/java2000_wl/article/details/8627874
- android 蓝牙 http://blog.csdn.net/u012843100/article/details/52384219
http://blog.csdn.net/u012843100/article/details/52384219
- http://blog.csdn.net/krislight/article/details/9391455
http://blog.csdn.net/krislight/article/details/9391455
- http://blog.csdn.net/shawnkong/article/details/52045894
http://blog.csdn.net/shawnkong/article/details/52045894
- 使用C++扩展Python的功能 转自:http://blog.csdn.net/magictong/article/details/8897568#comments
使用C++扩展Python的功能 环境 VS2005Python2.5.4 Windows7(32位) 简介 长话短说,这里说的扩展Python功能与直接用其它语言写一个动态链接库,然后让Python ...
- http://blog.csdn.net/hitmediaman/article/details/6636402
http://blog.csdn.net/hitmediaman/article/details/6636402
- http://blog.csdn.net/iamshaofa/article/details/7877785/
http://blog.csdn.net/iamshaofa/article/details/7877785/
- http://blog.csdn.net/z69183787/article/details/37819831
http://blog.csdn.net/z69183787/article/details/37819831
- http://blog.csdn.net/u010246789/article/details/52539576
http://blog.csdn.net/u010246789/article/details/52539576
随机推荐
- 使用伪hash降低索引长度
理想的索引 1:查询频繁 2:区分度高 3:长度小 4: 尽量能覆盖常用查询字段. 1: 索引长度直接影响索引文件的大小,影响增删改的速度,并间接影响查询速度(占用内存多). 针对列中的值,从左往 ...
- 跑在Docker下的RHEL7编译Java8源码包
1.运行Docker时需要加参数--cap-add=SYS_PTRACE,比如: docker run --cap-add=SYS_PTRACE --name buildjava8 -v /opt/r ...
- Linux中显示一个文件最后几行的命令
tail -n 20 filename说明:显示filename最后20行. Linux下tail命令的使用方法.linux tail命令用途是依照要求将指定的文件的最后部分输出到标准设备,通常是终端 ...
- 【转】WCF入门教程五[WCF的通信模式]
一.概述 WCF在通信过程中有三种模式:请求与答复.单向.双工通信.以下我们一一介绍. 二.请求与答复模式 描述: 客户端发送请求,然后一直等待服务端的响应(异步调用除外),期间处于假死状态,直到服务 ...
- zebra/quagga
参考:http://blog.chinaunix.net/uid-25513153-id-212328.html 一.zebra安装 .编译安装 vim ./lib/zebra.h + 增加: #if ...
- C struct的内存对齐
说明:如果你看到了这篇,请略过. struct是复合类型. 其中的成员在内存中的分布都是对齐的. 这个对齐的意思是,struct的sizeof运算结果必定是其最大类型长度的整数倍. --注意,如果st ...
- ffplay的音视频同步分析
以前工作中参与了一些音视频程序的开发,不过使用的都是芯片公司的SDK,没有研究到更深入一层,比如说音视频同步是怎么回事.只好自己抽点时间出来分析开源代码了,做音视频编解码的人都知道ffmpeg,他在各 ...
- Ajax分页(MVC下)(附源码,前后台)
网上找的一个分页js,自己改了改.. 前台页面 @{ ViewBag.Title = "Index"; } <h1>分页方法封装</h1> <scri ...
- 【Java面试题】52 java中会存在内存泄漏吗,请简单描述。
所谓内存泄露就是指一个不再被程序使用的对象或变量一直被占据在内存中.Java中有垃圾回收机制,它可以保证一对象不再被引用的时候,即对象编程了孤儿的时候,对象将自动被垃圾回收器从内存中清除掉.由于Jav ...
- MS17-010 EternalBlue SMB Remote Windows Kernel Pool Corruption 2017-05-18 16:45
wget "https://raw.githubusercontent.com/rapid7/metasploit-framework/6d81ca42087efd6548bfcf92417 ...