Text.toSymbolsFormat

Outputs text with color and positional formatting.

Using the special block $ <...>, you can highlight text with color, for example:

new Text(font).toSymbolsFormat("Black text! $<ffffff> white text!\nNew line!");

There must be a hex color inside the special block, which will be used later. Also, line wrapping is supported.

class Text
@trusted
toSymbolsFormat
(
T
)
(,
Color!ubyte defaultColor = rgba(255, 255, 255, 255)
)

Parameters

T

string type.

symbols T

Text.

Meta