![]() |
![]() |
![]() |
![]() |
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);
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.
PfGlyphCx(): See the example for PfGetGlyphIndexCx().
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
PfGenerateFontName(), PfGenerateFontNameCx(), PfGetOutline(), PfGetOutlineCx(), PfRender(), PfRenderCx()
Fonts chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |