wxPdfFontSubsetTrueType Class Reference

Class representing TrueType Font Subsets. (For internal use only). More...

#include <pdffontsubsettruetype.h>

Inheritance diagram for wxPdfFontSubsetTrueType:
wxPdfFontParserTrueType wxPdfFontParser

List of all members.

Public Member Functions

 wxPdfFontSubsetTrueType (const wxString &fileName, int fontIndex=0)
 Default constructor.
virtual ~wxPdfFontSubsetTrueType ()
 Default destructor.
wxMemoryOutputStream * CreateSubset (wxInputStream *inFont, wxPdfSortedArrayInt *glyphsUsed, bool includeCmap=false)
 Create subset of a font.

Protected Member Functions

bool ReadLocaTable ()
 Read 'loca' table.
bool CheckGlyphs ()
 Check glyphs.
void FindGlyphComponents (int glyph)
 Find the components of a glyph.
void CreateNewTables ()
 Create a new table.
void WriteSubsetFont ()
 Write the subset of the font.
int CalculateChecksum (char *b, size_t length)
 Calculate a check sum.
void WriteShort (int n)
 Write a short integer to the default output stream.
void WriteInt (int n)
 Write an integer to the default output stream.
void WriteString (const wxString &s)
 Write a stringto the default output stream.
void WriteShortToBuffer (int n, char buffer[2])
 Write a short integer to a buffer.
void WriteIntToBuffer (int n, char buffer[4])
 Write an integer to a buffer.

Detailed Description

Class representing TrueType Font Subsets. (For internal use only).


Constructor & Destructor Documentation

wxPdfFontSubsetTrueType::wxPdfFontSubsetTrueType ( const wxString &  fileName,
int  fontIndex = 0 
)

Default constructor.

virtual wxPdfFontSubsetTrueType::~wxPdfFontSubsetTrueType (  )  [virtual]

Default destructor.


Member Function Documentation

int wxPdfFontSubsetTrueType::CalculateChecksum ( char *  b,
size_t  length 
) [protected]

Calculate a check sum.

bool wxPdfFontSubsetTrueType::CheckGlyphs (  )  [protected]

Check glyphs.

void wxPdfFontSubsetTrueType::CreateNewTables (  )  [protected]

Create a new table.

wxMemoryOutputStream* wxPdfFontSubsetTrueType::CreateSubset ( wxInputStream *  inFont,
wxPdfSortedArrayInt *  glyphsUsed,
bool  includeCmap = false 
)

Create subset of a font.

Parameters:
inFont stream containing the font data
glyphsUsed a list of used glyphs
includeCmap flag whether to include the CMap table
Returns:
the stream containing the font subset
void wxPdfFontSubsetTrueType::FindGlyphComponents ( int  glyph  )  [protected]

Find the components of a glyph.

bool wxPdfFontSubsetTrueType::ReadLocaTable (  )  [protected]

Read 'loca' table.

void wxPdfFontSubsetTrueType::WriteInt ( int  n  )  [protected]

Write an integer to the default output stream.

void wxPdfFontSubsetTrueType::WriteIntToBuffer ( int  n,
char  buffer[4] 
) [protected]

Write an integer to a buffer.

void wxPdfFontSubsetTrueType::WriteShort ( int  n  )  [protected]

Write a short integer to the default output stream.

void wxPdfFontSubsetTrueType::WriteShortToBuffer ( int  n,
char  buffer[2] 
) [protected]

Write a short integer to a buffer.

void wxPdfFontSubsetTrueType::WriteString ( const wxString &  s  )  [protected]

Write a stringto the default output stream.

void wxPdfFontSubsetTrueType::WriteSubsetFont (  )  [protected]

Write the subset of the font.


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

Generated on Mon Oct 12 22:02:42 2009 for wxPdfDocument by  doxygen 1.6.1