Progress
Language Reference


FONT-TABLE System Handle

Interfaces
OS
SpeedScript
Graphical only
Windows only
No

A handle to the current font table.

SYNTAX

FONT-TABLE [ :attribute | :method ] 

attribute

Specifies an attribute of the FONT-TABLE handle. The attributes are shown in this table.

Attribute
Type
Readable
Setable
INTEGER
CHARACTER

method

Specifies a method of the FONT-TABLE handle. The methods are shown in this table.

Method
Return Type
Description
DECIMAL
Returns the character unit height of the font. If you omit font, the height of the default font is returned.
INTEGER
Returns the pixel height of the font. If you omit font, the height of the default font is returned.
GET-TEXT-WIDTH-CHARS( ) Method ( string [ , font ] )
DECIMAL
Returns the character unit width of the string in the font. If you omit font, the width in the default font is returned.
GET-TEXT-WIDTH-PIXELS( ) Method (string [ , font] )
INTEGER
Returns the pixel width of the string in the font. If you omit font, the width in the default font is returned.

EXAMPLE

This code shows how to query and set the integer attribute, NUM-ENTRIES.

DEFINE VARIABLE i AS INTEGER.
i = FONT-TABLE:NUM-ENTRIES.    /* to query */
/* or */
i = 255.
FONT-TABLE:NUM-ENTRIES = i.    /* to set */ 

NOTES

SEE ALSO

GET-KEY-VALUE Statement, PUT-KEY-VALUE Statement, SYSTEM-DIALOG FONT Statement, USE Statement


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095