Supported FontStyle Identifier and Integer Values

You can include any of several FontStyle identifiers in a TrendSpec definition, in order to specify different font style(s) to the ViewX defaults. In each case, you can specify the required font style using one of these integer or identifier values:

Supported Identifier Values

FontStyleRegular

FontStyleBold

FontStyleItalic

FontStyleBoldItalic

FontStyleUnderline

FontStyleStrikeout

Example:

TitleFontStyle = FontStyleUnderline

Identifier values are case insensitive and cannot include any character spaces.

Supported Integer Values

0 (equating to FontStyleRegular)

1 (equating to FontStyleBold)

2 (equating to FontStyleItalic)

3 (equating to FontStyleBoldItalic)

4 (equating to FontStyleUnderline)

8 (equating to FontStyleStrikeout)

To specify a combination of the above styles, specify the sum of the integers that, when combined, provide the required style.

Example:

LabelFontStyle = 3
(for the font assigned to the y-axis label’s text to appear in bold italic (providing that the font assigned to the LabelFont identifier supports such a style))

LabelFontStyle = 7
(with 7 being the sum of the separate integer values 3 + 4 (that is, FontStyleBoldItalic AND FontStyleUnderline), or 1 + 2 + 4 (FontStyleBold AND FontStyleItalic AND FontStyleUnderline))

For a more detailed example that demonstrates how the various FontStyle identifiers might be defined, see Use TrendSpec to Define an Ad Hoc Trend’s Text Attributes.


Disclaimer

Geo SCADA Expert 2020