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

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

211. laya.display.BitmapFont_API3.0 [ 77%]

...lay/BitmapFont.ts:20 当前位图字体字号,使用时,如果字号和设置不同,并且autoScaleSize=true,则按照设置字号比率进行缩放显示。 letterSpacing letterSpacing: number = 0 Defined in laya/display/BitmapFont.ts:26 lineHeight lineHeight: number = 12 Defined in laya/di...

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

212. 位图字体不显示 [ 76%]

...rmang42 谢谢 我刚刚把打印的文字全部换成之前导出位图时设置的文字就都出来了   2017-08-11 1 4 分享 微博 QZONE 微信 Supermang42 赞同来自: this.mBitmapFont.loadFont( "ziti.fnt", new Laya.Handler( this, onLoaded ) );   上面的 "ziti.fnt" 路徑錯誤,需寫...

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

213. 打包微端app, 如何只打包部分资源和js程序文件,比方说把初始用到项目的js文件和资源打包进去,其他的依靠第一次使用到的时候热更新 [ 76%]

...问题,config.js里面有loadingView.setFontColor("#000000");设置字体的颜色,有没有设置字体大小的api zkang5 • 2017-11-10 18:29 比方说,我只构建js文件到app, 这样也可以吗,或者我全部构建进去,然后把一些需要热更新的都删除掉 Moni...

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

214. 文本-字数限制 [ 76%]

...xt.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; inputText.maxChars = 5; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.I...

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

215. HTMLDivElement 对齐问题! [ 76%]

...。 2018-05-02 0 2 分享 微博 QZONE 微信 夏至未至 赞同来自: 设置div字体里的样式 2018-05-02 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: valign='top'不行吗? 2018-05-02 0 1 分享 微博 QZONE 微信 熊猫大侠 赞同来自: <span style="color:#AA7850;font-we...

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

216. laya.display.Text_API3.0 [ 76%]

...显示异常。(通常电脑上显示正常,在一些移动端因缺少设置字体而显示异常)。 example package { import laya.display.Text; public class Text_Example { public function Text_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "...

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

217. 文本-单行输入 [ 76%]

... 1; // 移动端输入提示符 inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Lay...

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

218. 文本-字数限制 [ 76%]

...xt.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; inputText.maxChars = 5; } } new Text_MaxChars();module laya { import Input = Laya.Input; import St...

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

219. 文本-禁止编辑 [ 76%]

... "这段文本不可编辑,但可复制"; inputText.editable = false; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Lay...

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

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

..., false));   this.bitmapFont = new BitmapFont(); }   onFontLoaded() { // 设置空格的宽 this.bitmapFont.setSpaceWidth(10); // 注册位图字体 Laya.Text.registerBitmapFont(fontName, this.bitmapFont);   this.createText(fontName); }   createText(font) { let txt = new Laya.Text(); Laya.stage....

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