Code: Select all
vbox:
text "{color=#FFFFFF}This size 30 white text has some cool black outlines" size 30
Code: Select all
vbox:
text "{color=#FFFFFF}This size 30 white text has some cool black outlines" size 30
outlines - list of tuple of (int, color, int, int)
This is a list of outlines that are drawn behind the text. Each tuple specifies an outline, and outlines are drawn from back to front.
The list contains (size, color, xoffset, yoffset) tuples. size is the amount the font is expanded by, in pixels. color is the color of the outline. xoffset and yoffset are the amount the outline is shifted by, in pixels.
The outline functionality can also be used to give drop-shadows to fonts, by specifying a size of 0 and non-zero offsets.
By default, size, xoffset and yoffset are scaled with the text. When given as the absolute type, they are not scaled. For example:will always produce a 1 pixel-wide border.Code: Select all
style default: outlines [ (absolute(1), "#000", absolute(0), absolute(0)) ]
Outlines only work with TrueType fonts. Outlines only work when applied to an entire Text displayable. They do not work when applied to a hyperlink, text tag, or other method that applies to only a portion of the text.