1.13 Layer 图层 - Text Layer 文本图层


A text layer. Define the size to wrap text. Change anchor to set text alignment.
文字图层,能定义容器的大小。更改锚点以设置文本对齐方式。

Enable 启用
A boolean that is true when the layer is displayed.
勾选启用查看器中才读取这个图层。

Text 文本
A text string to display.
要显示的文字。

Font Name 字体名称
The font family with which to render the text. By default, uses the font on the phone, tablet, or computer the prototype is running on.
用于呈现文本的字体系列。默认情况下,在使用正在运行的手机、平板电脑、电脑上的字体。

Font Size 文字尺寸
The size with which to render the text, in dp.
文字大小,单位dp。

Color 颜色
The color of the layer.
图层的颜色。

Position 位置
The position to display the layer. Use Point 3D to set Z position.
位置。使用 Point 3D 模块设置Z轴位置。
板栗:点击 Position 属性也可以显示3个轴向并设置值。

Anchor 锚点
The anchor point to position the layer relative to. Determines text alignment.See Coordinates for more information.
位于屏幕中的锚点,取保字符对齐。详细信息阅读Coordinates 坐标

Size 尺寸
The size of the layer. Any text overflowing the width will be wrapped to subsequent lines.
文本框的大小。溢出宽度的文本会自动换行。

Opacity 不透明度
The opacity of the layer.
图层的不透明度。

Scale 比例
The scale of the layer.
图层显示的比例。(板栗:1=100%)

Rotation 角度
The rotation of the layer. Use Point 3D to set X or Y rotations.
图层的角度。使用 Point 3D 模块设置Z、Y轴角度。
板栗:点击 Rotation 属性也可以显示3个轴向并设置值。

Pivot 轴心点
The pivot to rotate and scale the layer about. See Coordinates for more information.
图层缩放、旋转、移动时的中心点或初始点。详细信息阅读Coordinates 坐标

Shadow
Shadow Color 阴影颜色
The color of the shadow.
阴影的颜色。

Shadow Opacity 阴影不透明度
The opacity of the shadow. By default, the opacity is 0, which disables the shadow.
阴影的不透明度。 默认值为0,不显示阴影。

Shadow Radius 阴影半径
The blur radius of the shadow.
阴影的模糊半径值。(板栗:值越大范围越大,颜色越淡。)

Shadow Offset 阴影偏移
The size of the shadow relative to the size of the layer.
阴影相对于图层的距离和角度。

Character Spacing 字间距
A number that represents the horizontal space between characters, in dp.
表示字符之间的水平间距的数字,单位dp。

Line Height 行间距
A number that represents the distance between baselines, in dp.
表示两行文本间的距离,单位dp。

Paragraph Spacing 段落间距
A number that represents the vertical space between paragraphs, in dp.
表示两个段落之间的距离,单位dp。

全部图层,查看 图层目录


Related Patches 相关模块

Text Size,Text Length


Related Layers 相关图层

Text Field 文本输入框


Related Examples 案例

Facebook Notifications
Create a series of notifications entirely out of loops.

Fahrenheit to Celsius
Get to know logic and patches in Origami through temperature conversion.

Instagram Adjust
Use drag to control the Instagram straighten tool.

Instagram Color Picker
Change the text color in an Instagram Stories post.

Instagram Compose
Switch between the Instagram upload options.

Instagram Direct Messages
Send an Instagram direct message to a friend, over and over again.

Instagram Notifications
Switch between notifications with animation.

Instagram Stories Scroll
Tap to switch between read and unread Instagram Stories.

Photo Zoom
Animate between two states when the screen is tapped.

Traffic Light
Transition across three or more states and include logic.
See Example


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 196,099评论 5 462
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 82,473评论 2 373
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 143,229评论 0 325
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,570评论 1 267
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,427评论 5 358
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,335评论 1 273
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,737评论 3 386
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,392评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,693评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,730评论 2 312
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,512评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,349评论 3 314
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,750评论 3 299
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,017评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,290评论 1 251
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,706评论 2 342
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,904评论 2 335

推荐阅读更多精彩内容

  • 长恨人心不如水,等闲平地起波澜。 年下到正月,家中几番变故,令人许久不得心静,唏嘘感慨,意难平!都说人生如戏,哪知...
    日夕间阅读 461评论 0 3
  • 武陵源风景区类似于天下第一桥的风景有很多,但其特征基本相似:这里是林的峰,峰的林,我们看山大多是仰望的,而这里...
    9e0b0fa679e8阅读 487评论 0 0
  • 尽管走下去,不必逗留着,去采鲜花来保存,因为在这一路上,花自然会继续开放。——泰戈尔 自从我喜欢上了文字后,偶尔有...
    八月天阅读 1,103评论 0 1