Function: filepix

Syntax

filepix (<file>{,<font>})

Type

numeric

Returns

The extents in pixels of a text file when displayed in an alpha window. Two values are returned, the width and height. The font to be used can be specified.

Parameters

Examples

The following returns the size occupied by the file myfile.cmd.

numeric size[2] = filepix(myfile.cmd)

The following returns the size occupied by the file myfile.cmd using the font small_xfont.

numeric size[2] = filepix(myfiile.cmd,small_xfont)

See Also

Commands:

font, walpha, wpanel

Functions:

awpix (numeric)

Structures:

font