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.
用于呈現(xiàn)文本的字體系列餐禁。默認情況下血久,在使用正在運行的手機、平板電腦帮非、電腦上的字體氧吐。

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.
圖層縮放杖刷、旋轉(zhuǎn)励饵、移動時的中心點或初始點。詳細信息閱讀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.
表示字符之間的水平間距的數(shù)字,單位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 相關(guān)模塊

Text Size逆济,Text Length


Related Layers 相關(guān)圖層

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


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末酌予,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子纹腌,更是在濱河造成了極大的恐慌霎终,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,039評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件升薯,死亡現(xiàn)場離奇詭異涎劈,居然都是意外死亡蛛枚,警方通過查閱死者的電腦和手機扭吁,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,426評論 3 395
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來枫吧,“玉大人九杂,你說我怎么就攤上這事。” “怎么了涎永?”我有些...
    開封第一講書人閱讀 165,417評論 0 356
  • 文/不壞的土叔 我叫張陵惶我,是天一觀的道長绸贡。 經(jīng)常有香客問我捧挺,道長,這世上最難降的妖魔是什么黑竞? 我笑而不...
    開封第一講書人閱讀 58,868評論 1 295
  • 正文 為了忘掉前任檐涝,我火速辦了婚禮谁榜,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘撕瞧。我一直安慰自己巩掺,他們只是感情好胖替,可當我...
    茶點故事閱讀 67,892評論 6 392
  • 文/花漫 我一把揭開白布燃箭。 她就那樣靜靜地躺著招狸,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,692評論 1 305
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛烫饼,可吹牛的內(nèi)容都是我干的试读。 我是一名探鬼主播杠纵,決...
    沈念sama閱讀 40,416評論 3 419
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼钩骇!你這毒婦竟也來了比藻?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,326評論 0 276
  • 序言:老撾萬榮一對情侶失蹤倘屹,失蹤者是張志新(化名)和其女友劉穎银亲,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體唐瀑,經(jīng)...
    沈念sama閱讀 45,782評論 1 316
  • 正文 獨居荒郊野嶺守林人離奇死亡群凶,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,957評論 3 337
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了哄辣。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片请梢。...
    茶點故事閱讀 40,102評論 1 350
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖力穗,靈堂內(nèi)的尸體忽然破棺而出毅弧,到底是詐尸還是另有隱情,我是刑警寧澤当窗,帶...
    沈念sama閱讀 35,790評論 5 346
  • 正文 年R本政府宣布够坐,位于F島的核電站,受9級特大地震影響崖面,放射性物質(zhì)發(fā)生泄漏元咙。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,442評論 3 331
  • 文/蒙蒙 一巫员、第九天 我趴在偏房一處隱蔽的房頂上張望庶香。 院中可真熱鬧,春花似錦简识、人聲如沸赶掖。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,996評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽奢赂。三九已至,卻和暖如春颈走,著一層夾襖步出監(jiān)牢的瞬間膳灶,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,113評論 1 272
  • 我被黑心中介騙來泰國打工立由, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留轧钓,地道東北人司致。 一個月前我還...
    沈念sama閱讀 48,332評論 3 373
  • 正文 我出身青樓,卻偏偏與公主長得像聋迎,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子枣耀,可洞房花燭夜當晚...
    茶點故事閱讀 45,044評論 2 355

推薦閱讀更多精彩內(nèi)容

  • 長恨人心不如水捞奕,等閑平地起波瀾牺堰。 年下到正月,家中幾番變故颅围,令人許久不得心靜伟葫,唏噓感慨,意難平院促!都說人生如戲筏养,哪知...
    日夕間閱讀 473評論 0 3
  • 武陵源風景區(qū)類似于天下第一橋的風景有很多,但其特征基本相似:這里是林的峰常拓,峰的林渐溶,我們看山大多是仰望的,而這里...
    9e0b0fa679e8閱讀 498評論 0 0
  • 盡管走下去,不必逗留著掂恕,去采鮮花來保存拖陆,因為在這一路上,花自然會繼續(xù)開放懊亡∫绬——泰戈爾 自從我喜歡上了文字后,偶爾有...
    八月天閱讀 1,128評論 0 1