[Egret学习笔记 三]Bitmap Font(位图文字)的使用
来源:互联网 发布:2303am网络打印 编辑:程序博客网 时间:2024/06/05 23:51
1.使用Texture Merger工具,编辑文字,导出一张位图和一个.fnt文件。然后,将该.fnt文件和该位图放置在项目的同目录下
2.修改Resource.json配置
{"resources":
[
{"name":"font_fnt","type":"font","url":"assets/font/font.fnt"}
],
"groups":
[
{"name":"preload","keys":" font_fnt"}
]
}
3.代码实现
var bmpText = new egret.BitmapText();
bmpText.font = RES.getRes("font_fnt");
bmpText.text = "我的Egret";
this.addChild(bmpText);
0 0
- [Egret学习笔记 三]Bitmap Font(位图文字)的使用
- 位图字体生成工具Bitmap Font Generator的使用
- [Tools]位图字体生成工具Bitmap Font Generator的使用
- cocos2d-x位图字体生成工具Bitmap Font Generator的使用(内含命令行)
- Bitmap Font generator位图字体工具 使用
- [Egret学习笔记 二]MovieClip的使用
- [Egret学习笔记 四]声音的使用
- Cocos2d-x学习笔记之Bitmap Font generator位图字体工具
- 免费的位图字体制作工具Bitmap Font Generator使用教程
- Android学习笔记之Bitmap位图的旋转
- Android学习笔记之Bitmap位图的缩放
- Android学习笔记之Bitmap位图的旋转
- Android学习笔记之bitmap位图的叠加效果
- [Egret学习笔记 五]GUI Scroller的使用
- [Egret学习笔记 六]GUI DataGroup和ArrayCollection的使用
- Oracle编程艺术学习笔记-位图索引(bitmap index)
- Bitmap Font generator位图字体工具
- Bitmap font工具使用
- 学习笔记一
- LeetCode | Same Tree
- 设计模式 ( 十八 ) 策略模式Strategy(对象行为型)
- java排序之shell排序(希尔排序)(四)
- 1009University
- [Egret学习笔记 三]Bitmap Font(位图文字)的使用
- go 速学 - 11 - 结构
- zoj 3031 / cdoj 430 - Robotruck - Southwestern Europe 2007
- uva 10651 状态压缩DP
- TCP/IP详解笔记(9)
- 黑马程序员——C语言基础——用printf函数、数组和循环结构输出特殊图形
- 杭电 HDU ACM 1562 Guess the number
- 第二章第二十题
- 5.9.2 初始化块和构造器