Graphics Function: Returns the current font characteristics.
USE IFQWIN
result = GETFONTINFO (font)
font |
(Output) Derived type FONTINFO. Set of characteristics of the current font. The FONTINFO derived type is defined in IFQWIN.F90 as follows:
|
The result type is INTEGER(2). The result is zero if successful; otherwise, -1.
You must initialize fonts with INITIALIZEFONTS before calling any font-related function, including GETFONTINFO.
STANDARD GRAPHICS QUICKWIN GRAPHICS LIB
! Build as QuickWin or Standard Graphics
USE IFQWIN
TYPE (FONTINFO) info
INTEGER(2) numfonts, return, line_spacing
numfonts = INITIALIZEFONTS ( )
return = GETFONTINFO(info)
line_spacing = info%pixheight + 2
END
Building Applications: Using Fonts from the Graphics Library Overview
Building Applications: Setting the Font and Displaying Text