Render a wide-character string via a callback function
#include <photon/Pf.h>
int PfRenderWideText(
const char *font,
const uint16_t *str,
int len,
PhPoint_t const *pos,
PhRect_t const *clip,
void (*func)( const PhPoint_t *,
const FontRender *));
ph
This function renders the given wide-character string via a user callback function.
| This function assumes each character is represented by 2 bytes that conform to the ISO/IEC 10646-1 UCS-2 double-byte format. |
When a request to construct the bitmap is sent to the font server, the string bitmap is returned, for efficiency, in the shared-memory area created through the initial call to PfAttach().
This function is normally used only by graphics drivers, but may be useful for application programs that have to obtain text bitmap data directly.
The FontRender metrics structure contains at least the following members:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PfExtentWideText(), PfFractionalRenderText() PfRenderCtx(), PfRenderCx(), PfRenderText(), PfGenerateFontName(), PfWideTextWidthBytes(), PfWideTextWidthChars(), PhPoint_t, PhRect_t
Fonts chapter of the Photon Programmer's Guide