filepix (<file>{,<font>})
numeric
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.
<file>
The name of the text
file. The file must exist.
<font>
The font to be used to calculate the size. This must be a fixed font. If
omitted, a default system font is used.
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)
Commands: |
|
Functions: |
awpix (numeric) |
Structures: |