【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 ...
随机推荐
- js冒泡事件的特例toggle无法实现阻止冒泡——slideDown()和slideUp()
一.问题 题目及答案展示:要求,点击题目,展开答案.如下: 展开前 展开后 最开始使用的toggle方法来实现 $(".content_problem").toggle( func ...
- C#textbox右击弹出菜单
给窗口体拖一个contextMenuTrip 控件,也就是右键菜单控件,这时你就不要给这个控件写内容了, 选中textBox 然后点属性窗口,把它的contextMenuTrip 属性选中你刚才托的那 ...
- Javascript 中childNodes和children的区别
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <m ...
- 六步实现Rest风格的API
Rest的作者认为计算机发展到现在,最大的成就不是企业应用,而是web,是漫漫无边的互联网web世界.Web能有这么大的成就,它值得我们研究.所以Rest的作者仔细研究了Web,按照Web的世界一些关 ...
- PHP WAMP关闭notice等提示
这是xdebug的的错误报告.在开发环境下,可以考虑将其开启,但是在部署到真实应用环境下应该将其关掉. 找到你的php.ini 在最后几行注释掉所有关于xdebug的东西,重启apache即可!
- unity UGUI动态字体显示模糊
设置Unity中ttf文件的Character为Unicode,点击apply
- ISO9000与ISO9001的区别
很多人询问ISO9000和ISO9001的区别在哪里,其实这是一个概念上的误解. ISO9001是ISO9000族标准所包括的一组质量管理体系核心标准之一.ISO9000族标准是国际标准化组织(ISO ...
- ubuntu下显卡管理
1 Ubuntu下卸载ATI显卡驱动并还原开源驱动[转] 首先卸载已经安装的ATI显卡驱动:cd /usr/share/ati/sudo ./fglrx-uninstall.sh 接着执行下面的代码: ...
- wxpython 中 用鼠标拖动控件 总结
#encoding: utf-8 import wx import os import noname class Frame( noname.MyFrame1 ): def __init__(self ...
- Failed to execute goal.....webxml attribute is required...
maven在打包项目的时候报错 Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-wa ...