大约有 125 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
Laya_社区(59) Laya2.0_文档(14) Laya3.0_api(11) Laya2.0_示例(9) Laya2.0_api(9) Laya_示例(9) Laya3.0_文档(8) laya_api(6)
android包 文本加粗(bold)属性无效 如题,网页版正常,打包成Android包后加粗的字体没有变化,文字使用官方的Layabox.ttf, 请问有人遇到过吗? 改如何解决? 附件 : --> 2022-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20220426
...graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.font); Browser.context.font = ctxFont; var padding = this.padding; var startX = padding[3]; ...
来源: Laya_社区 发布时间: 20180417
...ormat._font; fontSize = _textFormat._fontSize; color = _textFormat._color; bold = _textFormat._bold; italic = _textFormat._italic; underline = _textFormat._underline; padding = String(_textFormat._leftMargin); // leftMargin = value.leftMargin; // rightMargin = value.rightMargin; // indent = value.in...
来源: Laya_社区 发布时间: 20170516
...创建2.4 InnerHTML属性三、代码中使用3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线3.2 同一个文本中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使...
来源: Laya3.0_文档 发布时间: 20230303
...ader = new Laya.TTFLoader(); ttfloader.load("font/ubuntu-bold.ttf"); ttfloader.fontName = "ubuntu"; ttfloader.err = Laya.Handler.create(this, () => { console.log("加载失败ubuntu-bold.ttf"); }); ...
来源: Laya_社区 发布时间: 20220330
...式类 Hierarchy TextStyle Index Constructors constructor Properties align bold color font fontSize italic leading strikethrough stroke strokeColor underline underlineColor valign Constructors constructor new TextStyle(): TextStyle Defined in laya/display/css/TextStyle.ts:53 Returns TextStyle Proper...
来源: Laya3.0_api 发布时间: 20231115
...ght = 256; cxt.fillStyle = 'rgb(' + '255' + ',' + '0' + ',0)'; cxt.font = "bold 50px 宋体"; cxt.textAlign = "center";//文本的对齐方式 cxt.textBaseline = "center";//文本相对于起点的位置 //设置文字,位置 cxt.fillText("-10000", 100, 50, 200);//有填充cxt.font="bold 60px 宋体...
来源: Laya_社区 发布时间: 20191211
...rue|false; 是否是斜体 * bold:true|false; 是否是粗体 * letter-spacing:10px; 字间距 * font-family:宋体; 字体 ...
来源: Laya_社区 发布时间: 20190227
...信 熊猫大侠 赞同来自: <span style="color:#AA7850;font-weight:bold;font:24px SimHei">对单个目标造成</span> <span style="color:#FF0000;font-weight:bold;font:24px SimHei">350%</span> <span style="color:#AA7850;font-weight:bold;font:24px SimHei">伤害</s...
来源: Laya_社区 发布时间: 20180502
...ent(); let htmlStr:string = ""; htmlStr += "<span style='font-weight:bold;font:24px Arial' color='#fafbf9'>累计进行关卡</span>"; htmlStr += "<span style='font-weight:bold;font:48px Arial;valign:top' color='#84ED4A'>3</span>"; htmlStr += "<span style='font-weight:b...
来源: Laya_社区 发布时间: 20180718