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/pfglyph.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/pfglyph.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/pfglyph.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/pfglyph.html on line 8
Obtain the metrics and/or bitmap for the specified character
#include <photon/Pf.h>
int PfGlyph( const char *font,
long symbol,
FontRender *metrics,
unsigned char *bitmap,
int size,
FontName fontused);
#include <font_api.h>
int PfGlyphCx( struct _Pf_ctrl *context,
const char *font,
long symbol,
FontRender *metrics,
unsigned char *bitmap,
int size,
FontName fontused);
- context
- (PfGlyphCx() only) A pointer to the font context to use, returned by PfAttachCx() or PfAttachDllCx().
- font
- The base font to use, which you should create by calling
PfGenerateFontName()
or PfGenerateFontNameCx().
- symbol
- The character that you're interested in.
- metrics
- NULL, or a pointer to a FontRender structure,
which the function fills in with the character metrics (see
PfRender()).
- bitmap
- NULL, or a pointer to a block of memory where the function
can store the character bitmap.
- size
- The number of bytes in the block that bitmap points to.
- fontused
- NULL, or a buffer where the function can store the name
of the font that supplies the character.
- PfGlyph()
- ph
- PfGlyphCx()
- font
These routines are useful for obtaining arbitrary character glyphs, such
as cursors. The functions obtain from the base
font the metrics and/or bitmap for the character specified by
symbol.
When bitmap is non-NULL, it must point to an area of
size bytes that the character bitmap can be
placed in. It may be rendered as a bitmap/image in conjunction with the
metrics information. The actual font used to supply the character is
placed in the string pointed to by fontused if
non-NULL.
- 0
- Success.
- -1
- An error occurred
(errno
is set).
PfGlyphCx(): See the example for PfGetGlyphIndexCx().
Photon
PfGlyph()
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PfGlyphCx()
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
PfGenerateFontName(),
PfGenerateFontNameCx(),
PfGetOutline(),
PfGetOutlineCx(),
PfRender(),
PfRenderCx()
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/pfglyph.html on line 204
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/pfglyph.html on line 204