Text Formatting (Color, Font, Size)
|Top Previous Next|
In translation files, in dialog windows of plugins and other places, some strings may contain constructions like:
Here <format> is a space-delimited list of following text properties:
•Font style ("B", "I", "U", "S" standing for bold, italic, underline, strikethrough correspondingly).
•Font name (a name in single quotes).
•Font size (whole or fractional number with decimal point ".").
If font size has to be changed relative to the current size, put a symbol of one of arithmetic operations "+", "-", "*" before the number.
Example: "*0.5" – decrease font size 2 times, and "*2" – increase 2 times.
Color is specified via a constant, or a hexadecimal number with a prefix "$", in format "RRGGBB". Example: "$1A05ff" specified a blue color.
The first character must be "_". The background color gets defined the same way as the text color.
Font formatting example: