<layer name="mytext" type="text" align="lefttop" x="10" y="10" html="Text...[br][b]Bold Text...[/b]" css="font-family:Arial; font-size:16px; color:#000000;" vcenter="false" padding="2" wordwrap="true" bg="true" bgcolor="0xFFFFFF" bgalpha="1.0" bgborder="0" bgroundedge="0" bgshadow="" txtshadow="" mergedalpha="true" interactivecontent="false" onautosized="" />
<hotspot name="mytext" type="text" ath="0" atv="0" edge="center" distorted="true" renderer="webgl" html="Text...[br][b]Bold Text...[/b]" css="font-family:Arial; font-size:16px; color:#000000;" vcenter="false" padding="2" wordwrap="true" bg="true" bgcolor="0xFFFFFF" bgalpha="1.0" bgborder="0" bgroundedge="0" bgshadow="" txtshadow="" mergedalpha="true" oversampling="1.0" mipmapping="false" onautosized="" />
Attribute name | Type | Default value | |
html | String | "" | |
---|---|---|---|
|
|||
Attribute name | Type | Default value | |
css | String | "" | |
|
|||
Attribute name | Type | Default value | |
vcenter | Boolean | false | |
|
|||
Attribute name | Type | Default value | |
padding | String | "2" | |
Padding / space in pixels around the text. Can be individually for each side. There are 4 different ways to set the paddings (same as in CSS):
|
|||
Attribute name | Type | Default value | |
wordwrap | Boolean | true | |
|
|||
Attribute name | Type | Default value | |
bg | Boolean | true | |
Draw a background shape behind the text. | |||
Attribute name | Type | Default value | |
bgcolor | int | 0xFFFFFF | |
Background color of the textfield. | |||
Attribute name | Type | Default value | |
bgalpha | Number | 1.0 | |
Transparency / alpha of the background color of the textfield. | |||
Attribute name | Type | Default value | |
bgborder | String | "0" | |
Add borders around the textfield. Syntax: bgborder="width color alpha" Parameters:
| |||
Attribute name | Type | Default value | |
bgroundedge | String | "0" | |
Define rounded edges of the textfield background color shape. A value sets the edge rounding radius in pixels. Four values can be set, one for each edge (separated by space characters). They are given in the order: top-left, top-right, bottom-right, bottom-left. If bottom-left is omitted, it is the same as top-right. If bottom-right is omitted, it is the same as top-left. If top-right is omitted, it is the same as top-left. | |||
Attribute name | Type | Default value | |
bgshadow | String | "" | |
Add a shadow behind the textfield background shape. Syntax: bgshadow="xoffset yoffset blur color alpha" Parameters:
| |||
Attribute name | Type | Default value | |
txtshadow | String | "" | |
Add a shadow behind the text. Syntax: txtshadow="xoffset yoffset blur color alpha" Parameters:
| |||
Attribute name | Type | Default value | |
mergedalpha | Boolean | true | |
By default the alpha transparency of the background will be applied also to the border and shadow, but by disabling that setting, it would be possible to render the border and shadow with their own and independent alpha transparency. | |||
Attribute name (only for WebGL-Hotspots usage) | Type | Default value | |
oversampling | Number | 1.0 | |
Upscale the internal bitmap rendering target by the given oversampling factor for a higher-resolution (sharper) text. Settings larger 1.0 are improving the text-rendering-quality, but also requiring more memory- and rendering-resources. | |||
Attribute name (only for WebGL-Hotspots usage) | Type | Default value | |
mipmapping | Boolean | false | |
Enable mipmapping - this reduces aliasing effects when displaying the text as scaled-down element. Mipmapping works by automatically upscaling the internal bitmap rendering target to the next power-of-two size (because that's required for mipmapping). Because of this scaling, it would be recommended to use additionally also oversampling for a better image/text quality - e.g. mipmapping="true" and oversampling="2.0". | |||
Attribute name (HTML5 only) | Type | Default value | |
interactivecontent | Boolean | false | |
|
Attribute name | Type | Default value | |
onautosized | String | "" | |
---|---|---|---|
|