Font Support Quick Summary

Top  Previous  Next

Here is a brief summary of the FONT attribute, and FONT language support:

 

FONT([typeface] [,size] [,color] [,style] [,charset ])

The FONT attribute (PROP:FONT) specifies the default display font for controls.

 

FONTDIALOG([title] ,typeface [,size] [,color] [,style] [,added] )

The FONTDIALOG procedure displays the Windows standard font choice dialog box to allow the user to choose a font.

 

FONTDIALOGA([title] ,typeface [,size] [,color] [,style] [,charset] [,added] )

The FONTDIALOGA procedure displays the Windows standard font choice dialog box to allow the user to choose a font and character set.

 

GETFONT( control [, typeface ] [, size ] [, color ] [, style ] [,charset])

GETFONT gets the display font information for the control.

 

SETFONT( control , [ typeface ] , [ size ] , [ color ] , [ style ] ,[charset])

SETFONT( window , [ typeface ] , [ size ] , [ color ] , [ style ] ,[charset])

SETFONT dynamically specifies the display font for the control, overriding any FONT attribute. If the control parameter is zero (0), SETFONT specifies the default font for the window.

The parameters of each statement are nearly identical, and are described below:

 

title

A string constant or variable containing the title to place on the font choice dialog. If omitted, a default title is supplied by Windows.

control

A field number or field equate label for the control to affect. If control is zero (0), it specifies the WINDOW.

window

Label of a WINDOW, APPLICATION or REPORT structure, or a value of the reference variable of the type &WINDOW, or a procedure parameter of the type WINDOW, or a built-in TARGET variable.

typeface

A string constant or variable containing the name of the font. If omitted, the system font is used.

size

A SREAL constant or variable containing the size (in points) of the font. If omitted, the system default font size is used.

color

A SIGNED integer constant or variable containing the red, green, and blue values for the color of the font in the low-order three bytes, or an EQUATE for a standard Windows color value. If omitted, black is used.

style

A SIGNED integer constant, constant expression, EQUATE, or variable specifying the strike weight and style of the font. If omitted, the weight is normal.

charset

A SIGNED integer variable specifying the character set value.

added

An integer constant or variable that specifies adding screen or printer fonts, or both, to the list of available fonts. Zero (0) adds screen fonts, one (1) adds printer fonts, and two (2) adds both. If omitted, only Windows registered fonts are listed. Not valid in Clarion#.