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

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

1. 文本-位图字体 [ 100%]

...LayaAirIDE让项目开发更高效。let fontName = "diyFont"; class Text_BitmapFont { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV ...

来源: Laya2.0_示例 发布时间: 20240930

2. 文本-位图字体 [ 99%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var BitmapFont = Laya.BitmapFont; var Stage = Laya.Stage; var Text = Laya.Text; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var fontName = "diyFont"; (function() { // 不支持WebGL时自动切...

来源: Laya_示例 发布时间: 20240930

3. bitmapFont.loadFont()加载多个地址导致位图输出重 [ 97%]

bitmapFont.loadFont()加载多个地址导致位图输出重 构造函数中是 this.setDataByTextureList("\n6+", ["res/fontadd/num6.fnt","res/fontadd/num+.fnt"]);     private setDataByTextureList(value:string, urls:string[]){ for(var i=0;i<urls.length;i++){ var bitmapFont: BitmapFont = ne...

来源: Laya_社区 发布时间: 20190705

4. laya.display.BitmapFont [ 97%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames BitmapFontProperties | Methods Packagelaya.displayClasspublic class BitmapFontInheritanceBitmapFont Object BitmapFont 是位图字体类,用于定义位图字体信息。 Public Properties PropertyDefined By  autoScale...

来源: laya_api 发布时间: 20170929

5. laya.display.BitmapFont [ 97%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames BitmapFontProperties | Methods Packagelaya.displayClasspublic class BitmapFontInheritanceBitmapFont Object BitmapFont 是位图字体类,用于定义位图字体信息。 字体制作及使用方法,请参考文章 See ...

来源: Laya2.0_api 发布时间: 20190513

6. 位图字体预加载 [ 96%]

... private function loadFont():void         {             var bitmapFont:BitmapFont = new BitmapFont();             bitmapFont.loadFont("../../../../res/bitmapFont/test.fnt",new Handler(this,onFontLoaded, [bitmapFont]));         }         private function onFontLoad...

来源: Laya_社区 发布时间: 20170629

7. laya.display.BitmapFont_API3.0 [ 95%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/BitmapFont" BitmapFont Class BitmapFont BitmapFont 是位图字体类,用于定义位图字体信息。 字体制作及使用方法,请参考文章 see http://ldc2.layabox.com/doc/?nav=ch-js-1-2-5 Hierarchy Resource Bitma...

来源: Laya3.0_api 发布时间: 20231115

8. BitmapFont的loadFont方法的回调问题 [ 94%]

BitmapFont的loadFont方法的回调问题 BitmapFont的loadFont方法设计得也太随便了吧?_comple回调竟然没有区分成功或失败! _path和_complete这两个成员也private了,想继承改写BitmapFont变得更蛋疼了~~就不能protected吗?设计者是如何考虑的?...

来源: Laya_社区 发布时间: 20171221

9. 位图字体BitmapFont加载问题 [ 93%]

位图字体BitmapFont加载问题 参考说明文档BitmapFont的制作流程,文字始终没有显示出来,然后准备排查,结果发现根本无从下手,调用的bitmapFont.loadFont这类函数返回值是void,也不知道是资源没加载,还是路径错误,还是数据错误...

来源: Laya_社区 发布时间: 20181107

10. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 93%]

...文档描述,Laya.Loader.FONT位图字体类型,加载完成后返回BitmapFont,加载后,会根据文件名自动注册为位图字体,按理说loader是支持位图字体加载的,是我使用姿势不对吗,百思不得其解,麻烦官方大佬看下,谢谢。   还有 https:/...

来源: Laya_社区 发布时间: 20190225