很多游戏中,便于开发就会直接采用Cocos2d提供的字体库来使用,但是因为提供的种类很多,那么Himi利用一些时间整理了57种字体样式,这些我想足够你用了;

不多说下面一起来看看吧:(每张图对应11种样式的字体,字体的名字就是其样式的名字)

-----------1------------------------

对应字体样式源码:

CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"AppleGothic" fontName:@"AppleGothic" fontSize:];
myLabel.position=ccp(, );
[self addChild:myLabel];
CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"HiraKakuProN-W6" fontName:@"HiraKakuProN-W6" fontSize:];
myLabel2.position=ccp(, );
[self addChild:myLabel2];
CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"HiraKakuProN-W3" fontName:@"HiraKakuProN-W3" fontSize:];
myLabel3.position=ccp(, );
[self addChild:myLabel3];
CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"MarkerFelt-Thin" fontName:@"MarkerFelt-Thin" fontSize:];
myLabel4.position=ccp(, );
[self addChild:myLabel4];
CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"STHeitiK-Medium" fontName:@"STHeitiK-Medium" fontSize:];
myLabel5.position=ccp(, );
[self addChild:myLabel5];
CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"STHeitiK-Light" fontName:@"STHeitiK-Light" fontSize:];
myLabel6.position=ccp(, );
[self addChild:myLabel6];
CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"TimesNewRomanPSMT" fontName:@"TimesNewRomanPSMT" fontSize:];
myLabel7.position=ccp(, );
[self addChild:myLabel7];
CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"Helvetica-Oblique" fontName:@"Helvetica-Oblique" fontSize:];
myLabel8.position=ccp(, );
[self addChild:myLabel8];
CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"Helvetica-BoldOblique" fontName:@"Helvetica-BoldOblique" fontSize:];
myLabel9.position=ccp(, );
[self addChild:myLabel9];
CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"Helvetica" fontName:@"Helvetica" fontSize:];
myLabel10.position=ccp(, );
[self addChild:myLabel10];
CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"Helvetica-Bold" fontName:@"Helvetica-Bold" fontSize:];
myLabel11.position=ccp(, );
[self addChild:myLabel11];

-----------2------------------------

对应字体样式源码:

CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"TimesNewRomanPS-BoldMT" fontName:@"TimesNewRomanPS-BoldMT" fontSize:];
myLabel.position=ccp(, );
[self addChild:myLabel];
CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"TimesNewRomanPS-BoldItalicMT" fontName:@"TimesNewRomanPS-BoldItalicMT" fontSize:];
myLabel2.position=ccp(, );
[self addChild:myLabel2];
CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"TimesNewRomanPS-ItalicMT" fontName:@"TimesNewRomanPS-ItalicMT" fontSize:];
myLabel3.position=ccp(, );
[self addChild:myLabel3];
CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Verdana-Bold" fontName:@"Verdana-Bold" fontSize:];
myLabel4.position=ccp(, );
[self addChild:myLabel4];
CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"Verdana-BoldItalic" fontName:@"Verdana-BoldItalic" fontSize:];
myLabel5.position=ccp(, );
[self addChild:myLabel5];
CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"Verdana" fontName:@"Verdana" fontSize:];
myLabel6.position=ccp(, );
[self addChild:myLabel6];
CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"Verdana-Italic" fontName:@"Verdana-Italic" fontSize:];
myLabel7.position=ccp(, );
[self addChild:myLabel7];
CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"Georgia-Bold" fontName:@"Georgia-Bold" fontSize:];
myLabel8.position=ccp(, );
[self addChild:myLabel8];
CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"Georgia" fontName:@"Georgia" fontSize:];
myLabel9.position=ccp(, );
[self addChild:myLabel9];
CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"Georgia-BoldItalic" fontName:@"Georgia-BoldItalic" fontSize:];
myLabel10.position=ccp(, );
[self addChild:myLabel10];
CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"Georgia-Italic" fontName:@"Georgia-Italic" fontSize:];
myLabel11.position=ccp(, );
[self addChild:myLabel11];

-----------3------------------------

对应字体样式源码:

CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"ArialRoundedMTBold" fontName:@"ArialRoundedMTBold" fontSize:];
myLabel.position=ccp(, );
[self addChild:myLabel];
CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"TrebuchetMS-Italic" fontName:@"TrebuchetMS-Italic" fontSize:];
myLabel2.position=ccp(, );
[self addChild:myLabel2];
CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"TrebuchetMS" fontName:@"TrebuchetMS" fontSize:];
myLabel3.position=ccp(, );
[self addChild:myLabel3];
CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Trebuchet-BoldItalic" fontName:@"Trebuchet-BoldItalic" fontSize:];
myLabel4.position=ccp(, );
[self addChild:myLabel4];
CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"TrebuchetMS-Bold" fontName:@"TrebuchetMS-Bold" fontSize:];
myLabel5.position=ccp(, );
[self addChild:myLabel5];
CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"STHeitiTC-Light" fontName:@"STHeitiTC-Light" fontSize:];
myLabel6.position=ccp(, );
[self addChild:myLabel6];
CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"STHeitiTC-Medium" fontName:@"STHeitiTC-Medium" fontSize:];
myLabel7.position=ccp(, );
[self addChild:myLabel7];
CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"GeezaPro-Bold" fontName:@"GeezaPro-Bold" fontSize:];
myLabel8.position=ccp(, );
[self addChild:myLabel8];
CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"GeezaPro" fontName:@"GeezaPro" fontSize:];
myLabel9.position=ccp(, );
[self addChild:myLabel9];
CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"Courier" fontName:@"Courier" fontSize:];
myLabel10.position=ccp(, );
[self addChild:myLabel10];
CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"Courier-BoldOblique" fontName:@"Courier-BoldOblique" fontSize:];
myLabel11.position=ccp(, );
[self addChild:myLabel11];

-----------4------------------------

对应字体样式源码:

CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"Courier-Oblique" fontName:@"Courier-Oblique" fontSize:];
myLabel.position=ccp(, );
[self addChild:myLabel];
CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"Courier-Bold" fontName:@"Courier-Bold" fontSize:];
myLabel2.position=ccp(, );
[self addChild:myLabel2];
CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"ArialMT" fontName:@"ArialMT" fontSize:];
myLabel3.position=ccp(, );
[self addChild:myLabel3];
CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Arial-BoldMT" fontName:@"Arial-BoldMT" fontSize:];
myLabel4.position=ccp(, );
[self addChild:myLabel4];
CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"Arial-BoldItalicMT" fontName:@"Arial-BoldItalicMT" fontSize:];
myLabel5.position=ccp(, );
[self addChild:myLabel5];
CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"Arial-ItalicMT" fontName:@"Arial-ItalicMT" fontSize:];
myLabel6.position=ccp(, );
[self addChild:myLabel6];
CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"STHeitiJ-Medium" fontName:@"STHeitiJ-Medium" fontSize:];
myLabel7.position=ccp(, );
[self addChild:myLabel7];
CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"STHeitiJ-Light" fontName:@"STHeitiJ-Light" fontSize:];
myLabel8.position=ccp(, );
[self addChild:myLabel8];
CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"ArialHebrew" fontName:@"ArialHebrew" fontSize:];
myLabel9.position=ccp(, );
[self addChild:myLabel9];
CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"ArialHebrew-Bold" fontName:@"ArialHebrew-Bold" fontSize:];
myLabel10.position=ccp(, );
[self addChild:myLabel10];
CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"CourierNewPS-BoldMT" fontName:@"CourierNewPS-BoldMT" fontSize:];
myLabel11.position=ccp(, );
[self addChild:myLabel11];

-----------5------------------------

对应字体样式源码:

CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"CourierNewPS-ItalicMT" fontName:@"CourierNewPS-ItalicMT" fontSize:];
myLabel.position=ccp(, );
[self addChild:myLabel];
CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"CourierNewPS-BoldItalicMT" fontName:@"CourierNewPS-BoldItalicMT" fontSize:];
myLabel2.position=ccp(, );
[self addChild:myLabel2];
CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"CourierNewPSMT" fontName:@"CourierNewPSMT" fontSize:];
myLabel3.position=ccp(, );
[self addChild:myLabel3];
CCLabelTTF *myLabel4 = [CCLabelTTF labelWithString:@"Thonburi-Bold" fontName:@"Thonburi-Bold" fontSize:];
myLabel4.position=ccp(, );
[self addChild:myLabel4];
CCLabelTTF *myLabel5 = [CCLabelTTF labelWithString:@"AmericanTypewriter" fontName:@"AmericanTypewriter" fontSize:];
myLabel5.position=ccp(, );
[self addChild:myLabel5];
CCLabelTTF *myLabel6 = [CCLabelTTF labelWithString:@"AmericanTypewriter-Bold" fontName:@"AmericanTypewriter-Bold" fontSize:];
myLabel6.position=ccp(, );
[self addChild:myLabel6];
CCLabelTTF *myLabel7 = [CCLabelTTF labelWithString:@"STHeitiSC-Medium" fontName:@"STHeitiSC-Medium" fontSize:];
myLabel7.position=ccp(, );
[self addChild:myLabel7];
CCLabelTTF *myLabel8 = [CCLabelTTF labelWithString:@"STHeitiSC-Light" fontName:@"STHeitiSC-Light" fontSize:];
myLabel8.position=ccp(, );
[self addChild:myLabel8];
CCLabelTTF *myLabel9 = [CCLabelTTF labelWithString:@"HelveticaNeue" fontName:@"HelveticaNeue" fontSize:];
myLabel9.position=ccp(, );
[self addChild:myLabel9];
CCLabelTTF *myLabel10 = [CCLabelTTF labelWithString:@"HelveticaNeue" fontName:@"HelveticaNeue" fontSize:];
myLabel10.position=ccp(, );
[self addChild:myLabel10];
CCLabelTTF *myLabel11= [CCLabelTTF labelWithString:@"HelveticaNeue-Bold" fontName:@"HelveticaNeue-Bold" fontSize:];
myLabel11.position=ccp(, );
[self addChild:myLabel11];

-----------6------------------------

对应字体样式源码:

myLabel.position=ccp(, );
[self addChild:myLabel];
CCLabelTTF *myLabel2 = [CCLabelTTF labelWithString:@"Zapfino" fontName:@"Zapfino" fontSize:];
myLabel2.position=ccp(, );
[self addChild:myLabel2];
CCLabelTTF *myLabel3 = [CCLabelTTF labelWithString:@"~Himi整理~" fontName:@"Zapfino" fontSize:];
myLabel3.position=ccp(, );
[self addChild:myLabel3];

ok,太累了,哎~不过为了后期开发方便,所以也是值得的,分享给大家,希望大家支持下~

收集Cocos2d提供的字体!共57种的更多相关文章

  1. 【iOS-Cocos2d游戏开发之四】独自收集Cocos2d提供的字体!共57种(有对照的字体图)

    本站文章均为李华明Himi原创,转载务必在明显处注明:(作者新浪微博:@李华明Himi) 转载自[黑米GameDev街区] 原文链接: http://www.himigame.com/iphone-c ...

  2. Cocos2d提供的字体(图文并茂)

    1.AppleGothic CCLabelTTF *myLabel = [CCLabelTTF labelWithString:@"AppleGothic" fontName:@& ...

  3. NGUI制作字体的三种方法

    主要参考两篇博文: (1).NGUI制作字体的三种方法 (2).使用位图字体工具BMFont从图片生成自定义字体 1.BMFont下载地址 http://www.angelcode.com/produ ...

  4. css清除浮动大全共8种方法

    原文链接http://www.jb51.net/css/173023.html 清除浮动是每一个 web前台设计师必须掌握的机能.css清除浮动大全,共8种方法. 浮动会使当前标签产生向上浮的效果,同 ...

  5. itextpdf使用中文字体的三种方式

    使用itextpdf时,默认的字体没有中文,总结了一下使用中文字体的方式. 1.使用windows系统下的字体,该种方式的具体操作可以看另一篇博客:https://www.cnblogs.com/wh ...

  6. Kali linux中安装字体的一种方法

    有人说,lucida sans typewriter字体是一种非常适合的编程字体,所以想试试.经过一番折腾,终于在Clion中用上了.步骤如下: 第一步:先下载这个字体. http://www.dow ...

  7. 字体图标三种格式区别(Unicode / Font class / Symbol)

    在实际项目中,或多或少会用到字体图标,优点是即减少了体积,又减少了http请求,可谓一举两得 我一般是在阿里巴巴矢量图库下载字体图标:http://www.iconfont.cn/   下面以阿里巴巴 ...

  8. UIFontDownLoad ----动态下载系统提供的字体

    程序运行结果如下 : 当点击对应单元格实现下载对应的字体. 控制台打印结果如下 : 2015-10-05 11:14:04.132 UIFontDownLoad[12721:86827] state ...

  9. 【读书笔记】iOS-UIFont-动态下载系统提供的字体-官方代码

    一,工程目录 二,AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOption ...

随机推荐

  1. 算法笔记_171:历届试题 小朋友排队(Java)

    目录 1 问题描述 2 解决方案   1 问题描述 问题描述 n 个小朋友站成一排.现在要把他们按身高从低到高的顺序排列,但是每次只能交换位置相邻的两个小朋友. 每个小朋友都有一个不高兴的程度.开始的 ...

  2. SQL 查询排名是第三位的人

    MYSQL可以使用如下的用法: SELECT id FROM partner_broker_account_record ORDER BY id LIMIT 2, 1 在limit为2的基础上加1, ...

  3. LogUtils.java

    package com.xdsjs.save.utils; /** * 日志相关管理类 * Created by xdsjs on 2015/10/13. */ import android.util ...

  4. git的color configura

    git color的配置 Git多颜色输出 Git默认的输出是单一颜色的,不仅不够美观,也不容易阅读.实际上,Git本身就支持用多种颜色来显示其输出的信息,只需在命令行中运行以下命令来修改git的设置 ...

  5. c# 获取北京时间更新本地计算机

    class UpdateDateTime { [DllImport("Kernel32.dll")] private static extern void SetLocalTime ...

  6. 1、创建一个空白的xls和xlsx文件

    1.创建一个空白的xls文件 Step1:先引入库NPOI.dll文件 Step2: ①:实例化一个workbook,实为在内存表中创建一个xls文件 NPOI.HSSF.UserModel.HSSF ...

  7. c++课程设计(日历)

    今天比较无聊,就随便找了个程序设计来做,下面是源代码,以及效果图...不喜请喷!/*题目1:年历显示. 功能要求: (1) 输入一个年份,输出是在屏幕上显示该年的日历.假定输入的年份在1940-204 ...

  8. hduoj----(1033)Edge

    Edge                         Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K ( ...

  9. supervisor+gunicorn部署python web项目

    有了Nginx,对于Tomcat没有必要详细了解. 有了supervisor,再也没有必要把一个程序设置成服务.驻留进程,supervisor真是一个相见恨晚的好工具. 在Tomcat中,所有的web ...

  10. 进程枚举之PSAPI函数

    使用PSAPI (Process StatusAPI)函数 这是一种Windows NT/2000下的方法.核心是使用EnumProcesses函数.它的原型如下: BOOL EnumProcesse ...