Top
PowerCOBOL V11.0 Reference
FUJITSU Software

2.7 Font Object

Description:

Font objects contain the properties of the font to be used for character strings in controls.

Font objects have the font name, point size, and related attributes such as bold, underscore etc.

Details:

Using font objects:

You access a Font object as if it is one of the properties of the control.

For example to set the font size of a StaticText control to 20 you code the following:

MOVE 20 TO "Size" OF "Font" OF StaticText1.

If you attempt to set a value that is not supported, for example a font size less than 8 points, the system substitutes a correct value.

And if you attempt to set a property that is not supported by the current font, for example the Bold property, the system substitutes a font that does support Bold.

Properties:

Bold

Charset

Italic

Name

Size

Strikethrough

Underline

Weight

Methods:

None

Events:

None

Corresponding Element in PowerCOBOL V3.0 or earlier:

The attributes related to fonts, for example POW-FONTSIZE and POW-ITALIC, associated with each item.