Creation

Empty fz_text objects can be created using the fz_new_text call:


\begin{lstlisting}
/*
fz_new_text: Create a new empty fz_text object.
\par
Thro...
... failure to allocate.
*/
fz_text *fz_new_text(fz_context *ctx);
\end{lstlisting}

Additional references can be taken/released in the usual manner:


\begin{lstlisting}
/*
fz_keep_text: Add a reference to an fz_text.
\par
text: t...
...to.
*/
void fz_drop_text(fz_context *ctx, const fz_text *text);
\end{lstlisting}