Saykrd Posted December 15, 2013 Share Posted December 15, 2013 So, the documentation on Text objects has a "style" parameter that is described as:The style object containing style attributes like font, font sizeWhat exactly are all the supported style attributes and are they listed somewhere? Link to comment Share on other sites More sharing options...
XekeDeath Posted December 15, 2013 Share Posted December 15, 2013 As per the PIXI documentation:[style] Object optionalThe style parameters String optionaldefault "bold 20pt Arial" The style and size of the font [fill=black] Object optionalA canvas fillstyle that will be used on the text eg "red", "#00FF00" [align=left] String optionalAn alignment of the multiline text ("left", "center" or "right") [stroke] String optionalA canvas fillstyle that will be used on the text stroke eg "blue", "#FCFF00" [strokeThickness=0] Number optionalA number that represents the thickness of the stroke. Default is 0 (no stroke) [wordWrap=false] Boolean optionalIndicates if word wrap should be used [wordWrapWidth=100] Number optionalThe width at which text will wrap Dread Knight 1 Link to comment Share on other sites More sharing options...
Recommended Posts