Skip to content

Format text on a screen

eaxScadaHow-to guideStarterProEnterpriseView as Markdown

A title, a label or a live readout that looks the way you want: font, colour, a box around it, and a value formatted for the operator. Everything here is set in the inspector of a Text object and is drawn the same way in the designer, in the operator runtime and on a phone.

A screen of Text objects in the designer and in the operator runtime: bold italic underlined text, an outlined title, a soft shadow, a boxed and centred text, an ellipsis, a shrink-to-fit box, a value with thousands separator, prefix and unit, strikethrough with letter spacing, capitalized words and a justified paragraph. A screen of Text objects in the designer and in the operator runtime: bold italic underlined text, an outlined title, a soft shadow, a boxed and centred text, an ellipsis, a shrink-to-fit box, a value with thousands separator, prefix and unit, strikethrough with letter spacing, capitalized words and a justified paragraph.

The same Text objects in the designer (left) and the operator runtime (right).

Select the Text object. The Text field at the top of its properties holds:

  • literal text: press Enter for a new line;
  • or a translation key, t:key|Fallback, shown in the operator’s language (see Translate your project).

A live value or an expression is not typed here: set it on the object’s Bind tab (target Display Text / Value or Value (Numeric)). The bound value then replaces the text, formatted as described under Value.

Below the text field, the properties are in four sections: Font, Colour & effects, Box and Value. Click a section’s title to fold or unfold it; the browser remembers which ones you keep open.

The inspector of a selected Text object: the multi-line Text field, the Font section (text style, family, size, weight, bold, italic, underline, strikethrough, letter case, letter spacing, line height) and the Colour and effects section. The inspector of a selected Text object: the multi-line Text field, the Font section (text style, family, size, weight, bold, italic, underline, strikethrough, letter case, letter spacing, line height) and the Colour and effects section.

The Text field, and the Font and Colour & effects sections.
Field What it does
Text style A named text style of the project (Title, Label, Value…). (none: object font) uses only the settings below. With a style chosen, the settings you change below still apply on top of it. See Fonts and text styles.
Font family Chosen with the font picker: the system fonts, the bundled font and the project’s own fonts.
Size (px) The font size, 4 to 400 pixels.
Weight Normal, Medium, Semibold or Bold.
B, I, U, S Bold, italic, underline, strikethrough. Each button shows whether it is on.
Letter case Aa as typed, UPPER, lower or Capitalize (the first letter of each word in capitals). The text you typed is kept; only the display changes.
Letter spacing (px) Extra space between letters, -5 to 50 pixels.
Line height (×) The distance between lines of a multi-line text, as a multiple of the font size (1 = normal).
Field What it does
Text colour The colour of the text. The palette button next to it opens the colour and gradient studio. The swatch shows the colour the canvas draws: while the Text keeps the type’s default colour and its text style sets one, that is the style’s colour, with the note From text style and the style’s name below. A colour you pick wins over the style’s.
Opacity (%) 0 (invisible) to 100 (opaque).
Outline colour, Outline width (px) A line drawn around each letter. A width of 0 draws no outline.
Shadow Tick it to add a shadow, then set its Shadow colour, Blur (px) and Offset X / Offset Y (px). Untick it to remove the shadow.

The Box section of a fixed-size Text: Auto and Fixed, horizontal and vertical alignment, padding, wrap, too long (clip), background, corner radius, border colour and width; below it the Value section with unit, decimals, prefix, suffix, thousands separator and the bad and uncertain value colours. The Box section of a fixed-size Text: Auto and Fixed, horizontal and vertical alignment, padding, wrap, too long (clip), background, corner radius, border colour and width; below it the Value section with unit, decimals, prefix, suffix, thousands separator and the bad and uncertain value colours.

A boxed, centred text: the Box and Value sections.

Size chooses how the box behaves:

  • Auto: the box follows the text. Resizing the object with its handles changes the font size.
  • Fixed: the box keeps the width and height you give it, and the text is laid out inside it. Switching to Fixed keeps the object’s current size. The handles then resize the box, never the font.
Field What it does
Horizontal alignment Left, centre, right or justify (each full line spread across the box; the last line stays left).
Vertical alignment Top, middle or bottom of the box. Fixed box only.
Padding (px) Space between the edge of the box and the text.
Wrap Words, Characters or No wrap: how a line too long for the box is broken.
Too long Fixed box only. What happens to text that does not fit: Clip (cut at the edge), Ellipsis … (ends with …), or Shrink to fit: the font gets smaller until the text fits, but never smaller than Smallest size (px) (8 by default).
Background A fill colour behind the text. ✕ removes it.
Border colour, Border width (px) A border around the box. ✕ removes the border colour.
Corner radius (px) Rounds the corners of the background and the border.

These fields format a value bound on the Bind tab. They do nothing on a text you typed.

Field What it does
Unit Written after a number, with a space (bar, degC, %). A word such as RUNNING is shown without it.
Decimals 0 to 6 decimals for a number. Empty (auto): whole numbers as they are, others with 2 decimals.
Prefix, Suffix Text written before and after the value, for example the prefix Flow gives Flow 1,234,567.9 kg/h.
Thousands separator None (1234567.8), Comma (1,234,567.8), Point (1.234.567,8: the decimal mark then becomes a comma), Space (1 234 567.8) or Apostrophe (1’234’567.8).
Bad value colour The text colour while the value is Bad.
Uncertain colour The text colour while the value is Uncertain or stale.

The quality colours are added to the quality marker, they never replace it: a Bad, Uncertain or stale value is always marked (red ✕, blue lock when the account may not read the tag, amber ?, dashed outline; see Show bad and stale values). When the value is good again, the text gets its normal colour back.

A Bad value is shown as a dash, —, without the prefix, the suffix or the unit: the last good number is never left on the screen.

Select several Text objects (Shift+click, or a box drawn around them). When all the selected objects are Text objects, the inspector shows the Font, Colour & effects, Box and Value sections for them. A change applies to every selected Text, as one undo step. The Text field itself is only shown for one object at a time.

Text objects saved before these options existed look exactly as before: they keep their font, size, colour and size behaviour until you change one of the new fields.