![]() |
![]() |
![]() |
![]() |
Preload a font within the font server
#include <photon/Pf.h>
int PfLoadFont( const char *font,
unsigned flags,
FontName fontused );
#include <font_api.h>
int PfLoadFontCx( struct _Pf_ctrl * context,
const char * font,
unsigned flags,
FontName fontused );
If you don't specify any flags, the function checks the validity of the input font name.
This function preloads a font (from disk into memory) within the font server to speed up subsequent use of the font. By default, a font is loaded only when required by PgExtentText() or PgDrawText().
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
PfGenerateFontName(), PfGenerateFontNameCx(), PgDrawText(), PgExtentText()
Fonts chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |