Construct a list of fonts
#include <photon/Pf.h>
int PfQueryFonts( long symbol,
unsigned flags,
FontDetails list[],
int n );
This function constructs a list of all fonts that may be used to render the character specified by the symbol parameter. For example, use 'A' to get a list of normal/Latin fonts, or 0x3A9 (omega) to get a list of Greek fonts. (See PkKeyDef.h or ISO/EIC 10646-1 for a list of symbols.)
The list of fonts is further filtered by the flags parameter, which may contain any combination of the following:
| Set this: | To select: |
|---|---|
| PHFONT_SCALABLE | Scalable fonts |
| PHFONT_BITMAP | Bitmapped fonts |
| PHFONT_PROP | Proportional fonts |
| PHFONT_FIXED | Fixed-width fonts |
| PHFONT_ALL_FONTS | All fonts |
Up to n matching font family entries are placed in the user-provided list. Each entry contains the following fields:
The number of matching fonts found, or -1 on error. Also, the list array is constructed.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PtFontSel (in the Photon Widget Reference)