• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0019 秒)

1. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 100%]

...如下所示: ```typescript import { ui } from "./ui/layaMaxUI"; //继承BitmapFont的ui场景类 export default class AllText extends ui.examples.text.BitmapFontUI { //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位...

来源: Laya2.0_文档 发布时间: 20210715

2. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 94%]

...port laya.resource.Texture; import laya.utils.Handler; import laya.display.BitmapFont; public class TestBitmapFont { //自定义文件名称 private var mFontName:String = "diyFont"; private var mBitmapFont:BitmapFont; public function TestBitmapFont() { Laya.init(550, 400); mBitmapFont = new BitmapF...

来源: Laya2.0_文档 发布时间: 20201114

3. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 90%]

...aya.init(550,400); //自定义文件名称 var mFontName = "diyFont"; var mBitmapFont = new Laya.BitmapFont(); //这里不需要扩展名,外部保证fnt与png文件同名 mBitmapFont.loadFont("res/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ //如果...

来源: Laya2.0_文档 发布时间: 20201114

4. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 64%]

...符占位。 > 未来的版本,有计划支持空格与换行 #### 2、BitmapFont位图字体类 通常FontClip已经可以满足关卡、特效等单行位图文本的需求。如果有特殊情况,就是想要空格,那也可以通过BitmapFont位图字体类来实现,在LayaAir 2.x IDE里...

来源: Laya2.0_文档 发布时间: 20210715