大约有 4 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0021 秒)
...如下所示: ```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
...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
...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
...符占位。 > 未来的版本,有计划支持空格与换行 #### 2、BitmapFont位图字体类 通常FontClip已经可以满足关卡、特效等单行位图文本的需求。如果有特殊情况,就是想要空格,那也可以通过BitmapFont位图字体类来实现,在LayaAir 2.x IDE里...
来源: Laya2.0_文档 发布时间: 20210715