Function group | Execute on client | Platform(s) |
---|---|---|
FontOps | NO | All |
FontOps.$wintextheight(font-name|font-table-index, point-size [,font-style, extra-points])
Returns the height in screen units of the specified window font.
You specify the font using either the font-name or font-table-index. When called with a font table index, $wintextheight() uses the window font system table of the current library which can contain up to 15 fonts numbered 1 to 15. You specify the point-size of the font, and you can include a font-style constant and a number of extra-points.
Do FontOps.$wintextheight('Courier',72) Returns lHeight
# returns 100 under Windows
Do FontOps.$wintextheight('Courier',72,,24) Returns lHeight
# returns 132 under Windows
Do FontOps.$wintextheight(2,36) Returns lHeight
# returns 50 under Windows
# note that Courier font is at position 2 in #WIWFONTS