Behavior : Text properties
Author:Rex.Rainbow
- Support actions to change properties of official text or sprite font object.
Download
Actions
Appearance
Action:Set font face
- Set the font face used to display text.
- Font face ( string ) : The new font face name to set.
- Style ( number ) : 0=normal, 1=bold, 2=italic, 3=bold and italic
Properties
Action:Set horizontal alignment
- Set horizontal alignment.
- Horizontal alignment ( Combo ) : Horizontal alignment of the text
- Options : ["Left","Center","Right"]
Action:Set Vertical alignment
- Set vertical alignment.
- Vertical alignment ( Combo ) : Horizontal alignment of the text
- Options : ["Top","Center","Bottom"]
Action:Set wrapping
- Set wrapping.
- Wrapping ( Combo ) : Wrap text by space-separated words or nearest character
- Options : ["Word","Character"]
Action:Set line height
- Set line height.
- Line height ( number ) : Offset to the default line height, in pixels. 0 is default line height
Action:Set wrapping (#)
- Set wrapping.
- Wrapping ( number ) : Wrap text. 0=Word, 1=Character
Action:Set horizontal alignment (#)
- Set horizontal alignment.
- Horizontal alignment ( number ) : Horizontal alignment. 0=Left, 1=Center. 2=Right
Action:Set Vertical alignment (#)
- Set vertical alignment.
- Vertical alignment ( number ) : Vertical alignment. 0=Top, 1=Center. 2=Bottom
Expressions
Content
Expression:LineBreakContent
- Get content with line break.