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

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

101. LayaAir下TTF字体的使用方式? [ 76%]

...置在h5目录下 步骤二:在html标签下以CSS格式嵌入TTF字体 font-family为字体名称 在项目中设置字体的font 编译后效果如下:   问题补充:   以上方法在canvas模式下正常,webGL模式下无效,这个是因为在用到该字体样式的时候,ttf字...

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

102. 屏幕适配-自动竖屏 [ 75%]

... new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } } new SmartScale_Portrait();module laya { import Stage = Laya.Stage...

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

103. 屏幕适配-自动横屏 [ 75%]

...new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } } new SmartScale_Landscape();module laya { import Stage = Laya.Stag...

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

104. laya.display.Graphics [ 75%]

...组三角形 Graphics  fillBorderText(text:String, x:Number, y:Number, font:String, fillColor:String, borderColor:String, lineWidth:Number, textAlign:String):FillBorderTextCmd 在画布上绘制“被填充且镶边的”文本。 Graphics  fillText(text:String, x:Number, y:Number, font:String, ...

来源: Laya2.0_api 发布时间: 20190513

105. HTMLDivElemen设置字体 [ 74%]

HTMLDivElemen设置字体 font 里面还要加 字号才可以么? 这样子font:24px Arial' 2018-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 你可以参考这个看一下http://ldc...

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

106. UI-TextArea [ 74%]

... function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; var scaleFactor = Browser.pixelRatio; Laya.stage.addChild(ta); } })();module laya { import S...

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

107. 文本-HTML文本 [ 74%]

...aragraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "使用"; html += "HTMLDivElement"; html += "创建的"; html += "HTML文本"; p.innerHTML = html; } function showExternalHTML() { var p = new HTMLIframeElement(); Laya.stage...

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

108. UI-TextArea [ 74%]

...st TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; impo...

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

109. 关于位图字体 [ 74%]

关于位图字体 是这样注册,吗 Laya.loader.load("res/font.fnt", Laya.Handler.create(this, this.onLoaded),null,Laya.Loader.FONT);   应该没什么问题了,就是这样的           附件 : --> 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

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

...orderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * 字体大小 */ fontSize?: number; /** * 是否为斜体 */ italic?: number; /** * 行间距 */ leading?: number; /** * 描边宽度 */ stroke?: number; /** * 描边颜色 */ strokeColor?: string; /** * ...

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