![]() |
![]() |
![]() |
![]() |
Attach to a font server
#include <photon/Pf.h> struct _Pf_ctrl *PfAttach( const char *device, long size );
ph
This function attaches to the font server.
PhAttach() calls PfAttach() as part of the standard Photon initialization sequence. The Pf library also automatically invokes PfAttach() when the library detects that the font server has been restarted. The font control structure pointer is stored in the global Photon control structure.
If you simply want to override the default font context, you can set the two environment variables (PHFONT and PHFONTMEM) to new values before performing standard Photon initialization, instead of calling this function directly.
If you want to use multiple font contexts, open them with PfAttach(), and then use the "Cx" versions of the font functions.
To detach from the font server, call PfDetach().
A pointer to an internal control structure if successful, NULL otherwise.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PfDetach(), PfExtentCx(), PfExtentTextCharPositionsCx(), PfGenerateFontNameCx(), PfGetOutlineCx(), PfRenderCx()
Fonts chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |