PfDetach(), PfDetachCx()

Detach from font server

Synopsis:

#include <photon/Pf.h>
void PfDetach( struct _Pf_ctrl *pf );

#include <font_api.h>
void PfDetachCx( struct _Pf_ctrl * pf  );

Arguments:

pf
A control structure. For PfDetach(), this structure was returned by a previous call to PfAttach(). For PfDetachCx(), this structure was returned by a previous call to PfAttachCx() or PfAttachDllCx().

Library:

PfDetach()
ph
PfDetachCx()
font

Description:

These functions detach the task from the font server and release all the memory that the font context uses, including any shared memory and local metrics code. If your application has attached to a local font DLL (using PfAttachLocalDll()), it must also call PfDetachLocalDll().

Examples:

PfDetachCx(): See the examples for PfConvertFontIDCx() and PfRenderCx().

Classification:

Photon

PfDetach()

Safety:
Interrupt handler No
Signal handler No
Thread No

PfDetachCx()

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

PfAttach(), PfAttachCx(), PfAttachDllCx(), PfExtentCx(), PfExtentTextCharPositionsCx(), PfGetOutlineCx(), PfRenderCx()

Fonts chapter of the Photon Programmer's Guide