SVG Interpreter Details

The SVG interpreter offers very little API other than that exposed through the fz_document interface.

The sole extras are defined to facilitate the use of SVGs as illustrations within EPUB files.


\begin{lstlisting}
/*
Parse an SVG document into a display-list.
*/
fz_display_...
..._image *fz_new_image_from_svg(fz_context *ctx, fz_buffer *buf);
\end{lstlisting}

These enable the HTML agent to easily create a fz_image out of an SVG. This fz_image has the property that it remains scalable, and hence will not appear pixellated if the document is reflowed to different dimensions.