Visible to Intel only — GUID: GUID-B9DA8B29-09BA-4BAD-86C4-774A150F329F
Visible to Intel only — GUID: GUID-B9DA8B29-09BA-4BAD-86C4-774A150F329F
INITIALIZEFONTS
Graphics Function: Initializes Windows* fonts. This routine is only available for Windows.
Module
USE IFQWIN
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.
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.
Example
! build as a QuickWin or Standard Graphics App.
USE IFQWIN
INTEGER(2) numfonts
numfonts = INITIALIZEFONTS()
WRITE (*,*) numfonts
END