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

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

301. 普通文本中文逗号导致异常换行 [ 49%]

...题的, 附件在下面的回复里面 var txt: Text = new Text(); txt.font = "SimHei"; txt.leading = 3; txt.fontSize = 20; txt.width = 656; txt.wordWrap = true; //给文本的text属性赋值 txt.text = "1级:提高1000%攻击速度,召唤雷电攻击目标,每条雷电必定...

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

302. 文字显示模糊 [ 49%]

...就是用代码写的 var _txt=new Label();             _txt.font="lishu";             _txt.fontSize = 18;             _txt.color="#000000";             _txt.text="是时晋武之世,寺庙图像,虽崇京邑,而方等深经,藴在葱外。护...

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

303. 技术文档svg不可以使用 [ 49%]

..." 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, 0p...

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

304. 字距的调整问题 [ 49%]

...后你找到这个方法 DrawText.drawText=function(ctx,txt,words,curMat,font,textAlign,fillColor,borderColor,lineWidth,x,y,underLine)在 var scale=sx!==1 || sy!==1; 在这句后面加判断 然后把特殊机型都改成sx=sy=1;这样就基本适配了。导致这样是因为特殊机型的缩放...

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

305. Sprite optimizeScrollRect = true 似乎有问题 [ 49%]

..._WHEEL, this, this.onMousewheel); } this.createText = function (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt.text = _content; txt.cacheAs = 'bitmap'; txt.fontSize = _fontSize; txt.bold = true; txt.font = 'wordFont'; txt.color = _color; txt.strokeColor =...

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

306. LayaNative端使用.ttf字体 [ 49%]

...复 cuixueying 赞同来自:   LayaNative端使用.ttf字体的方法setFontFaceFromBuffer(fontFamily,arrayBuffer),fontFamily为字体名称  arrayBuffer为ttf文件的内容 arrayBuffer(下载.ttf文件后的二进制数据)package { import laya.display.Text; import laya.net.Loader; i...

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

307. 2.0字体比较小的时候,某些字显示不全 [ 49%]

...性赋值 txt.text = "gggggqqqqqqqyyyyyyyvvvv"; txt.align = "center"; txt.fontSize = 15; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.leading = 5; txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } } }上面是我...

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

308. fatal error: 'string' file not found [ 48%]

...会报错。望提供解决方案 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #a31515; background-color: #ffffff} span.s1 {color: #0000ff} 附件 : --> 2019-07-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

309. Uncaught Can not find class EffectAnimation undefined [ 48%]

....2运行报错。:getBitmapData Cannot find the specified character in all fonts:263c Warning!,this class[MiniAdpter] already exist: Object {init: } 2.0.0编译报错Cannot find global type 'Array' 构建app后导入AS报错Could not find com.android.tools.build:gradle:3.1.2. 问题状态 最新活...

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

310. 位图字体的排版与注册点问题 [ 48%]

...的letterSpacing属性改变位图与位图之间的间距   eg: bitmapFont.letterSpacing = 20; 第二个问题:   文本属性设置完后,使用text.textWidth和textHeight获取宽高。 或者   如果在已知宽高的情况下,要设置过input.size(),或者input.width和input.heig...

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