PoDoFo  0.9.4
Public Member Functions | List of all members
PoDoFo::PdfFontConfigWrapper Class Reference

#include <PdfFontConfigWrapper.h>

Public Member Functions

 PdfFontConfigWrapper ()
 
 PdfFontConfigWrapper (const PdfFontConfigWrapper &rhs)
 
void * GetFontConfig ()
 

Detailed Description

This class initializes and destroys the FontConfig library.

As initializing fontconfig can take a long time, you can create a wrapper by yourself to cache initialization of fontconfig.

This class is reference counted. The last user of the fontconfig library will destroy the fontconfig handle.

The fontconfig library is initialized on first used (lazy loading!)

Constructor & Destructor Documentation

PoDoFo::PdfFontConfigWrapper::PdfFontConfigWrapper ( )

Create a new FontConfigWrapper and initialize the fontconfig library.

PoDoFo::PdfFontConfigWrapper::PdfFontConfigWrapper ( const PdfFontConfigWrapper rhs)

Copy an existing PdfFontConfigWrapper

Member Function Documentation

void * PoDoFo::PdfFontConfigWrapper::GetFontConfig ( )
inline

Get access to the internal fontconfig handle. Accesses to this handle have to be synchronized using a mutex!

See also
GetFontConfigMutex
Returns
a FcConfig handle (you can cast to FcConfig)