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:

[f<format>;string]

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.

Text color.

Color is specified via a constant, or a hexadecimal number with a prefix "$", in format "RRGGBB". Example: "$1A05ff" specified a blue color.

Background color.

The first character must be "_". The background color gets defined the same way as the text color.

 

Font formatting example:

Example

Formatted output

 

Found files: [fB;547]

Found files: 547

 

Save file ([fAccentBlue B;Ctrl+S])

Save file (Ctrl+S)

Height: [f *2 BU;48] Width: [f *2 BU;32]

Height: 48 Width: 32

 

Font sample: [f'Impact';Example]

Font sample: Example

 

[f_Red;T]he first character is highlighted

The first character is highlighted