INITIALIZEFONTS

QuickWin Function: Initializes Windows fonts.

Module: USE DFLIB

Syntax

result = INITIALIZEFONTS( )

Results:

The result is of type INTEGER(2). The result is the number of fonts initialized.

All fonts on Windows systems become available after a call to INITIALIZEFONTS. Fonts must be initialized with INITIALIZEFONTS before any other font-related library function (such as GETFONTINFO, GETGTEXTEXTENT, SETFONT, OUTGTEXT) can be used. For more information, see Using Fonts from the Graphics Library in the Programmer's Guide.

The font functions affect the output of OUTGTEXT only. They do not affect other Fortran I/O functions (such as WRITE) or graphics output functions (such as OUTTEXT).

For each window you open, you must call INITIALIZEFONTS before calling SETFONT. INITIALIZEFONTS needs to be executed after each new child window is opened in order for a subsequent SETFONT call to be successful.

Compatibility

STANDARD GRAPHICS QUICKWIN GRAPHICS LIB

See Also: Using QuickWin, SETFONT, OUTGTEXT

Example

! build as a QuickWin or Standard Graphics App.
USE DFLIB
INTEGER(2) numfonts
numfonts = INITIALIZEFONTS()
WRITE (*,*) numfonts
END