【iOS-Cocos2d游戏开发之四】独自收集Cocos2d提供的字体!共57种(有对照的字体图)
本站文章均为李华明Himi原创,转载务必在明显处注明:(作者新浪微博:@李华明Himi)
转载自【黑米GameDev街区】 原文链接: http://www.himigame.com/iphone-cocos2d/444.html
很多游戏中,便于开发就会直接采用Cocos2d提供的字体库来使用,但是因为提供的种类很多,那么Himi利用一些时间整理了57种字体样式,这些我想足够你用了;
不多说下面一起来看看吧:(每张图对应11种样式的字体,字体的名字就是其样式的名字)
-----------1------------------------
对应字体样式源码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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]; |
-----------2------------------------
对应字体样式源码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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]; |
-----------3------------------------
对应字体样式源码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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------------------------
对应字体样式源码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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------------------------
对应字体样式源码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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------------------------
对应字体样式源码:
1
2
3
4
5
6
7
8
|
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,太累了,哎~不过为了后期开发方便,所以也是值得的,分享给大家,希望大家支持下~
【iOS-Cocos2d游戏开发之四】独自收集Cocos2d提供的字体!共57种(有对照的字体图)的更多相关文章
- cocos2d 游戏开发实战
文章转自:http://uliweb.clkg.org/tutorial/read/40 6 cocos2d 游戏开发实战 6.1 创建cocos2d项目 6.2 cocos2d v3 & ...
- 收集Cocos2d提供的字体!共57种
很多游戏中,便于开发就会直接采用Cocos2d提供的字体库来使用,但是因为提供的种类很多,那么Himi利用一些时间整理了57种字体样式,这些我想足够你用了: 不多说下面一起来看看吧:(每张图对应11种 ...
- cocos2d 游戏开发:Cocos2d v3 "hello world"+显示飞船
V3 RC4 版本号图片 显示一个飞船 将Chapter1中 SpaceCargoShip.png 文件 加入到项目里面. 代码在 init : CCSprite *spaceCargoShip = ...
- cocos2d游戏开发,常用工具集合
位图字体工具Bitmap Font ToolsBMFont (Windows)FonteditorGlyph DesignerHieroLabelAtlasCreator 粒子编辑工具Particle ...
- 微信小游戏开发之四:使用three.js引擎
一.前言 微信小游戏中最魔性的'跳一跳'就是基于three.js 引擎开发的 源码放到github上了:GitHub地址 请自行下载. 二.下载 three.min.js 打开页面,复制代码到本地 ...
- 【Unity3d游戏开发】浅谈UGUI中的Canvas以及三种画布渲染模式
一.Canvas简介 Canvas画布是承载所有UI元素的区域.Canvas实际上是一个游戏对象上绑定了Canvas组件.所有的UI元素都必须是Canvas的自对象.如果场景中没有画布,那么我们创建任 ...
- SpriteKit游戏开发 Challenge 2: An invincible zombie 问题的另一种解决方法
大熊猫猪·侯佩原创或翻译作品.欢迎转载,转载请注明出处. 如果觉得写的不好请多提意见,如果觉得不错请多多支持点赞.谢谢! hopy ;) 该挑战的目的是僵尸碰到敌人时,将其设置为无敌模式,具体要求如下 ...
- iOS cocos2d 2游戏开发实战(第3版)书评
2013是游戏爆发的一年,手游用户也是飞速暴增.虽然自己不做游戏,但也是时刻了解手机应用开发的新动向.看到CSDN的"写书评得技术图书赢下载分"活动,就申请了一本<iOS c ...
- 【Cocos2D研究院之游戏开发】
http://www.xuanyusong.com/archives/category/ios/cocos2d_game 分类目录归档:[Cocos2D研究院之游戏开发] 201211-19 Co ...
随机推荐
- win7旗舰版安装office2007后打开文件提示找不到proplusww.msi
今天第一次打开2007的excel,出现错误如下: 解决办法: 转自:http://blog.163.com/huacai9420@126/blog/static/521585422011911524 ...
- HTML教程XHTML教程:HTML标记嵌套使用技巧
网页制作Webjx文章简介:WEB标准-HTML元素嵌套. 先来看以下这样一段代码: <ul> <li><h4><a href="" ...
- input点击删除默认value,以及只能输入数字,删除,tab
/*inputhastip类绑定事件*/ $('.inputhastip').css("color", "#999"); $('.inputhastip').b ...
- memcached+php客户端
连接memcached <?php $mem = new Memcache; $mem->connect('localhost',11211) or die("connected ...
- Unity3D脚本中文系列教程(五)
http://dong2008hong.blog.163.com/blog/static/4696882720140302848544/?suggestedreading&wumii Unit ...
- PHP 开发中的外围资源性能分析(二)
暂且不讨论「PHP 是不是最好的编程语言」,本文我们将分别分析一下在 PHP 程序的后端外围资源和前端外围资源,它们对整个 PHP Web 应用体验的影响,这往往比语言本身大得多. 上一篇中我们分析了 ...
- maven3常用命令、java项目搭建、web项目搭建详细图解
http://blog.csdn.net/edward0830ly/article/details/8748986 ------------------------------maven3常用命令-- ...
- C#中的文件操作
在.NET Framework 中进行的所有输入和输出工作都要用到流(stream) 有两种类型的流: 输出流:当向某些外部目标写入数据时,就要用到输出流(将数据写入到文件中). 输入流:用于将数据读 ...
- JS事件(事件冒泡和事件捕获)
事件流:描述的是在页面中接收事件的顺序 事件冒泡:由最具体的元素接收,然后逐级向上传播至最不具体的元素的节点(文档) 事件捕获:最不具体的节点先接收事件,而最具体的节点应该是最后接收事件 DOM中:用 ...
- React组件测试(模拟组件、函数和事件)
一.模拟组件 1.用到的工具 (1)browerify (2)jasmine-react-helpers (3)rewireify(依赖注入) (4)命令:browserify - t reactif ...