Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DspFontHnd

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the font handle of a font that is defined in the Fonts database. You can use this font handle in the functions that display text, buttons, and text files.

Syntax

DspFontHnd(sName)

Name:

The font name in the fonts database.

Return Value

The font handle as an integer. If the font cannot be found, -1 is returned. The font handle identifies the table where the data on the associated font is stored.

DspFont, DspText, DspButton, DspButtonFn, DspFile, DspSetPopupMenuFont

Example

Font Name

BigFont

Font Type

Helv

Pixel Size

24

Foreground Color

Blue

Background Color

-1

Comment

Defines a font

hBigFont=DspFontHnd("BigFont");
DspText(20,hBigFont,"Text in Big Font");
/* Displays "Text in Big Font" in 24-point Helvetica font in blue
on an unchanged background at AN20. */

See Also

Display Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in