大约有 113 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
... 属性 功能说明 文本内容 text 初始显示的文本内容 字体 font 文本的字体名称,例如:Microsoft YaHei,这里可以手动输入常用的字体,还可以是位图字体 字体大小 fontSize 文本字体大小,例如: 50,直接填写正整数 单字符渲染 singleC...
来源: Laya3.0_文档 发布时间: 20251010
...extInput.color = "#008fff";//设置 textInput 的文本颜色。 textInput.font = "Arial";//设置 textInput 的文本字体。 textInput.bold = true;//设置 textInput 的文本显示为粗体。 textInput.fontSize = 30;//设置 textInput 的字体大小。 textInput.wordWrap = true;//设置 textIn...
来源: Laya3.0_api 发布时间: 20231115
... textArea.color = "#008fff";//设置 textArea 的文本颜色。 textArea.font = "Arial";//设置 textArea 的字体。 textArea.bold = true;//设置 textArea 的文本显示为粗体。 textArea.fontSize = 20;//设置 textArea 的文本字体大小。 textArea.wordWrap = true;//设置 textArea 的...
来源: Laya3.0_api 发布时间: 20231115
... 使用如下代码尝试缓存atlas文件Laya.ext.toCache = [ 'res/atlas/fonts.atlas', 'res/atlas/image/items.atlas', 'res/atlas/image/orb.atlas', 'animate/shiny.atlas', 'res/atlas/image/interface.atlas', 'animate/explosion.atlas', 'animate/mine.atlas', 'res/atlas/image/game.atlas', ] for(let i = 0...
来源: Laya_社区 发布时间: 20180825
... height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, ...
来源: Laya3.0_文档 发布时间: 20251010
... Offset:文本距离Sprite原点(0,0)坐标位置的偏移值。 font:文本的字体设置。 Font Size:文本的字体大小。 Bold:文本是否为粗体。 Italic:文本是否为斜体。 fillColor:文本颜色。 Stork:文本的描边宽度,0表示不描边。 Stork Color...
来源: Laya3.0_文档 发布时间: 20251010
...i.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; Laya.stage.addChild(ti); return ti; } })(); 附件 : --> TSET.zip 2019-08-14...
来源: Laya_社区 发布时间: 20190814
...abel = new Label();//创建一个 Label 类的实例对象 label 。 label.font = "Arial";//设置 label 的字体。 label.bold = true;//设置 label 显示为粗体。 label.leading = 4;//设置 label 的行间距。 label.wordWrap = true;//设置 label 自动换行。 label.padding = "10,10,10,10...
来源: Laya3.0_api 发布时间: 20231115
...gt; (http://stand.alone.version/lib ... 943:39) at Text.defaultFontStr (http://stand.alone.version/lib ... 928:15) at Label.__proto.measureWidt Demo在附件中,是导出的单机版的2.2.0beta4的android studio工程 原始laya项目在之前的帖子里面已经上传...
来源: Laya_社区 发布时间: 20190829
...urns void drawText drawText(text: string | WordText, x: number, y: number, font: string, color: string, align: string): void Defined in laya/resource/NativeContext.ts:636 Parameters text: string | WordText x: number y: number font: string color: string align: string Returns void drawTexture drawText...
来源: Laya3.0_api 发布时间: 20231102