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

大约有 59 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)

1. android包 文本加粗(bold)属性无效 [ 100%]

android包 文本加粗(bold)属性无效 如题,网页版正常,打包成Android包后加粗的字体没有变化,文字使用官方的Layabox.ttf, 请问有人遇到过吗? 改如何解决? 附件 : --> 2022-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

2. 分享,扩展Laya.Text组件实现简单的富文本 [ 94%]

...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

3. 自己写了个label继承官方的label,出现了问题,求指导~ [ 94%]

...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

4. android native环境,ttfloader加载的字体,设置无效果! [ 90%]

...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

5. 3D文本内容是否可以清除 重新书写 [ 88%]

...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

6. HTMLDivElement 2.0 只有单行内容是 水平排版不居中 [ 88%]

...rue|false;                   是否是斜体      * bold:true|false;                     是否是粗体      * letter-spacing:10px;                 字间距      * font-family:宋体;                  字体   ...

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

7. HTMLDivElement 对齐问题! [ 87%]

...信 熊猫大侠 赞同来自: <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

8. 富文本排版问题 [ 87%]

...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

9. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 82%]

...e ITextFormat { /** * 背景色 */ bgColor?: string; /** * 是否加粗 */ bold?: number; /** * 文本框背景色 */ borderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * 字体大小 */ fontSize?: number; /** * 是否为斜体 */ italic?: number; /** * ...

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

10. 字体不支持weight [ 81%]

... 请问下 现在字体是不是不支持设置字体的粗细 只有一个bold 但是如果这个不满意 难道写个文字还得专门去搞个图片?这有点不合理吧 2017-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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