Function: awpix

Syntax

awpix (<num1>,<num2>{,<font>})

Type

numeric

Returns

The extents (in pixels) of text when displayed in an alpha window, given the text width (in columns) and height (in rows). Two values are returned: the width and height. The font to be used can be specified.

Parameters

Examples

Returns the size occupied by an 80 row by 24 column alpha window using the default font.

numeric size[2] = awpix(80,24)

Returns the size occupied by an 80 row by 24 column alpha window using the font small_xfont.

numeric size[2] = awpix(80,24,small_xfont)

See Also

Commands:

font, walpha, wpanel

Functions:

filepix (numeric)

Structures:

font