wxPdfDocument 1.2.0
Public Member Functions | Protected Attributes | List of all members
wxPdfFontParser Class Reference

Class representing font parsers. More...

#include <pdffontparser.h>

Inheritance diagram for wxPdfFontParser:
wxPdfFontParserTrueType wxPdfFontParserType1 wxPdfFontSubsetTrueType

Public Member Functions

 wxPdfFontParser ()
 Default constructor.
 
virtual ~wxPdfFontParser ()
 Default destructor.
 
void SeekI (int offset)
 Seek to offset in default input stream.
 
void SeekI (int offset, wxInputStream *stream)
 Seek to offset in specific input stream.
 
int TellI ()
 Tell current position in default input stream.
 
int TellI (wxInputStream *stream)
 Tell current position in specific input stream.
 
void SkipBytes (int count)
 Skip bytes in default input stream.
 
void SkipBytes (int count, wxInputStream *stream)
 Skip bytes in specific input stream.
 
int ReadInt ()
 Read integer from default input stream.
 
short ReadShort ()
 Read short integer from default input stream.
 
unsigned short ReadUShort ()
 Read unsigned short integer from default input stream.
 
unsigned char ReadByte ()
 Read byte from default input stream.
 
unsigned char ReadByte (wxInputStream *stream)
 Read byte from specific input stream.
 
wxString ReadString (int length)
 Read string from default input stream.
 
wxString ReadString (int length, wxInputStream *stream)
 Read string from specific input stream.
 
wxString ReadUnicodeString (int length)
 Read Unicode string from default input stream.
 
short ReadShortLE (wxInputStream *stream)
 Read short integer from specific input stream in little endian mode.
 
unsigned short ReadUShortLE (wxInputStream *stream)
 Read unsigned short integer from specific input stream in little endian mode.
 
unsigned int ReadUIntLE (wxInputStream *stream)
 Read unsigned integer from specific input stream in little endian mode.
 
wxString ReadString (wxInputStream &stream)
 Read string from specific input stream.
 

Protected Attributes

wxString m_fileName
 File name of the font file.
 
wxString m_fontName
 Name of font.
 
wxInputStream * m_inFont
 Font file input stream.
 
wxString m_style
 Font style.
 

Detailed Description

Class representing font parsers.

Constructor & Destructor Documentation

◆ wxPdfFontParser()

wxPdfFontParser::wxPdfFontParser ( )

Default constructor.

◆ ~wxPdfFontParser()

virtual wxPdfFontParser::~wxPdfFontParser ( )
virtual

Default destructor.

Member Function Documentation

◆ ReadByte() [1/2]

unsigned char wxPdfFontParser::ReadByte ( )

Read byte from default input stream.

Returns
the byte read

◆ ReadByte() [2/2]

unsigned char wxPdfFontParser::ReadByte ( wxInputStream * stream)

Read byte from specific input stream.

Parameters
streaminput stream
Returns
the byte read

◆ ReadInt()

int wxPdfFontParser::ReadInt ( )

Read integer from default input stream.

Returns
the integer read

◆ ReadShort()

short wxPdfFontParser::ReadShort ( )

Read short integer from default input stream.

Returns
the short integer read

◆ ReadShortLE()

short wxPdfFontParser::ReadShortLE ( wxInputStream * stream)

Read short integer from specific input stream in little endian mode.

Parameters
streaminput stream
Returns
the short integer read

◆ ReadString() [1/3]

wxString wxPdfFontParser::ReadString ( int length)

Read string from default input stream.

Parameters
lengththe length of the string to read
Returns
the string read

◆ ReadString() [2/3]

wxString wxPdfFontParser::ReadString ( int length,
wxInputStream * stream )

Read string from specific input stream.

Parameters
lengththe length of the string to read
streaminput stream
Returns
the string read

◆ ReadString() [3/3]

wxString wxPdfFontParser::ReadString ( wxInputStream & stream)

Read string from specific input stream.

Parameters
streaminput stream
Returns
the string read

◆ ReadUIntLE()

unsigned int wxPdfFontParser::ReadUIntLE ( wxInputStream * stream)

Read unsigned integer from specific input stream in little endian mode.

Parameters
streaminput stream
Returns
the unsigned integer read

◆ ReadUnicodeString()

wxString wxPdfFontParser::ReadUnicodeString ( int length)

Read Unicode string from default input stream.

Parameters
lengththe length of the string to read
Returns
the string read

◆ ReadUShort()

unsigned short wxPdfFontParser::ReadUShort ( )

Read unsigned short integer from default input stream.

Returns
the unsigned short integer read

◆ ReadUShortLE()

unsigned short wxPdfFontParser::ReadUShortLE ( wxInputStream * stream)

Read unsigned short integer from specific input stream in little endian mode.

Parameters
streaminput stream
Returns
the unsigned short integer read

◆ SeekI() [1/2]

void wxPdfFontParser::SeekI ( int offset)

Seek to offset in default input stream.

Parameters
offsetoffset to be seeked

◆ SeekI() [2/2]

void wxPdfFontParser::SeekI ( int offset,
wxInputStream * stream )

Seek to offset in specific input stream.

Parameters
offsetoffset to be seeked
streaminput stream

◆ SkipBytes() [1/2]

void wxPdfFontParser::SkipBytes ( int count)

Skip bytes in default input stream.

Parameters
countnumber of bytes to skip

◆ SkipBytes() [2/2]

void wxPdfFontParser::SkipBytes ( int count,
wxInputStream * stream )

Skip bytes in specific input stream.

Parameters
countnumber of bytes to skip
streaminput stream

◆ TellI() [1/2]

int wxPdfFontParser::TellI ( )

Tell current position in default input stream.

Returns
the current position in the default input stream

◆ TellI() [2/2]

int wxPdfFontParser::TellI ( wxInputStream * stream)

Tell current position in specific input stream.

Parameters
streaminput stream
Returns
the current position in the input stream

Member Data Documentation

◆ m_fileName

wxString wxPdfFontParser::m_fileName
protected

File name of the font file.

◆ m_fontName

wxString wxPdfFontParser::m_fontName
protected

Name of font.

◆ m_inFont

wxInputStream* wxPdfFontParser::m_inFont
protected

Font file input stream.

◆ m_style

wxString wxPdfFontParser::m_style
protected

Font style.


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