Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

PoDoFo::PdfFontMetricsFreetype Class Reference

Inheritance diagram for PoDoFo::PdfFontMetricsFreetype:
Inheritance graph
[legend]
Collaboration diagram for PoDoFo::PdfFontMetricsFreetype:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual double CharWidth (unsigned char c) const
unsigned long CharWidthMM (unsigned char c) const
virtual double GetAscent () const
virtual void GetBoundingBox (PdfArray &array) const
virtual double GetDescent () const
FT_Face GetFace ()
const char * GetFilename () const
float GetFontCharSpace () const
virtual const char * GetFontData () const
virtual pdf_long GetFontDataLen () const
virtual const char * GetFontname () const
float GetFontScale () const
float GetFontSize () const
EPdfFontType GetFontType () const
virtual long GetGlyphId (long lUnicode) const
virtual double GetGlyphWidth (int nGlyphId) const
virtual int GetItalicAngle () const
virtual double GetLineSpacing () const
unsigned long GetLineSpacingMM () const
virtual double GetPdfAscent () const
virtual double GetPdfDescent () const
virtual double GetStrikeOutPosition () const
unsigned long GetStrikeOutPositionMM () const
virtual double GetStrikeoutThickness () const
unsigned long GetStrikeoutThicknessMM () const
const char * GetSubsetFontnamePrefix () const
virtual double GetUnderlinePosition () const
long GetUnderlinePositionMM () const
virtual double GetUnderlineThickness () const
unsigned long GetUnderlineThicknessMM () const
virtual unsigned int GetWeight () const
virtual void GetWidthArray (PdfVariant &var, unsigned int nFirst, unsigned int nLast) const
virtual bool IsSymbol () const
 PdfFontMetricsFreetype (FT_Library *pLibrary, FT_Face face, const char *pszSubsetPrefix=NULL)
 PdfFontMetricsFreetype (FT_Library *pLibrary, const char *pBuffer, unsigned int nBufLen, const char *pszSubsetPrefix=NULL)
 PdfFontMetricsFreetype (FT_Library *pLibrary, PdfObject *pDescriptor)
 PdfFontMetricsFreetype (FT_Library *pLibrary, const char *pszFilename, const char *pszSubsetPrefix=NULL)
 PdfFontMetricsFreetype (FT_Library *pLibrary, const PdfRefCountedBuffer &rBuffer, const char *pszSubsetPrefix=NULL)
void SetFontCharSpace (float fCharSpace)
void SetFontScale (float fScale)
void SetFontSize (float fSize)
double StringWidth (const wchar_t *pszText, unsigned int nLength=0) const
double StringWidth (const PdfString &rsString) const
double StringWidth (const pdf_utf16be *pszText, unsigned int nLength=0) const
double StringWidth (const char *pszText, pdf_long nLength=0) const
unsigned long StringWidthMM (const wchar_t *pszText, unsigned int nLength=0) const
unsigned long StringWidthMM (const pdf_utf16be *pszText, unsigned int nLength=0) const
unsigned long StringWidthMM (const char *pszText, unsigned int nLength=0) const
virtual double UnicodeCharWidth (unsigned short c) const

Static Public Member Functions

static EPdfFontType FontTypeFromFilename (const char *pszFilename)

Protected Member Functions

void SetFontType (EPdfFontType eFontType)

Protected Attributes

EPdfFontType m_eFontType
float m_fFontCharSpace
float m_fFontScale
float m_fFontSize
FT_Face m_pFace
FT_Library * m_pLibrary
std::string m_sFilename
std::string m_sFontSubsetPrefix

Private Member Functions

void InitFontSizes ()
void InitFromBuffer ()
void InitFromFace ()

Private Attributes

bool m_bSymbol
 Internal member to singnal a symbol font.
PdfRefCountedBuffer m_bufFontData
double m_dAscent
double m_dDescent
double m_dLineSpacing
double m_dPdfAscent
double m_dPdfDescent
double m_dStrikeOutPosition
double m_dStrikeOutThickness
double m_dUnderlinePosition
double m_dUnderlineThickness
int m_nItalicAngle
unsigned int m_nWeight
std::vector< double > m_vecWidth

Detailed Description

Definition at line 35 of file PdfFontMetricsFreetype.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index