wxPdfDocument 0.9.2
Public Member Functions | Protected Member Functions
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, bool isMacCoreText=false)
 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.
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,
bool  isMacCoreText = false 
)

Default constructor.

virtual wxPdfFontSubsetTrueType::~wxPdfFontSubsetTrueType ( ) [virtual]

Default destructor.


Member Function Documentation

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:
inFontstream containing the font data
glyphsUseda list of used glyphs
includeCmapflag 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: