Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadfont.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadfont.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadfont.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadfont.html on line 8

PfLoadFont(), PfLoadFontCx()

Preload a font within the font server

Synopsis:

#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 );

Arguments:

context
(PfLoadFontCx() only) A pointer to the font context to use, returned by PfAttachCx() or PfAttachDllCx().
font
The name of the desired font, as created by PfGenerateFontName() or PfGenerateFontNameCx().
flags
Any combination of:

If you don't specify any flags, the function checks the validity of the input font name.

fontused
NULL, or a buffer where the function can store the real name of the font, which may be different from the input if the font is unknown or is mapped as an alias to another font (via the fontmap file).

Library:

PfLoadFont()
ph
PfLoadFontCx()
font

Description:

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().

Returns:

0
Success.
-1
An error occurred (errno is set).

Classification:

Photon

PfLoadFont()

Safety:
Interrupt handler No
Signal handler No
Thread No

PfLoadFontCx()

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

PfGenerateFontName(), PfGenerateFontNameCx(), PgDrawText(), PgExtentText()

Fonts chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadfont.html on line 186

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadfont.html on line 186