INITIALIZEFONTS (W*32, W*64)

Graphics Function: Initializes Windows* fonts.

Module

USE IFQWIN

Syntax

result = INITIALIZEFONTS( )

Results

The result type is 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 Building Applications: Using Fonts from the Graphics Library.

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

Example

! build as a QuickWin or Standard Graphics App.

USE IFQWIN

INTEGER(2) numfonts

numfonts = INITIALIZEFONTS()

WRITE (*,*) numfonts

END

See Also