wxPdfDocument
0.9.7
|
Class representing a Type1 font parser. More...
#include <pdffontparsertype1.h>
Public Member Functions | |
wxPdfFontParserType1 () | |
Default constructor. More... | |
virtual | ~wxPdfFontParserType1 () |
Default destructor. More... | |
wxPdfFontData * | IdentifyFont (const wxString &fontFileName, int fontIndex) |
Identify font based on a font file. More... | |
bool | ParseFont (const wxString &fileName, wxInputStream *fontFile, wxInputStream *metricFile, bool onlyNames) |
Parse font stream. More... | |
bool | LoadFontData (wxPdfFontData *fontData) |
Load the font data. More... | |
bool | ReadAFM (wxInputStream &afmFile) |
Read font metrics from Adobe Font Metric file. More... | |
bool | ReadPFM (wxInputStream &pfmFile) |
Read font metrics from Printer Font Metric file. More... | |
bool | ReadPFX (wxInputStream *pfxFile, bool onlyNames) |
Read font data from font file. More... | |
![]() | |
wxPdfFontParser () | |
Default constructor. More... | |
virtual | ~wxPdfFontParser () |
Default destructor. More... | |
void | SeekI (int offset) |
Seek to offset in default input stream. More... | |
void | SeekI (int offset, wxInputStream *stream) |
Seek to offset in specific input stream. More... | |
int | TellI () |
Tell current position in default input stream. More... | |
int | TellI (wxInputStream *stream) |
Tell current position in specific input stream. More... | |
void | SkipBytes (int count) |
Skip bytes in default input stream. More... | |
void | SkipBytes (int count, wxInputStream *stream) |
Skip bytes in specific input stream. More... | |
int | ReadInt () |
Read integer from default input stream. More... | |
short | ReadShort () |
Read short integer from default input stream. More... | |
unsigned short | ReadUShort () |
Read unsigned short integer from default input stream. More... | |
unsigned char | ReadByte () |
Read byte from default input stream. More... | |
unsigned char | ReadByte (wxInputStream *stream) |
Read byte from specific input stream. More... | |
wxString | ReadString (int length) |
Read string from default input stream. More... | |
wxString | ReadString (int length, wxInputStream *stream) |
Read string from specific input stream. More... | |
wxString | ReadUnicodeString (int length) |
Read Unicode string from default input stream. More... | |
short | ReadShortLE (wxInputStream *stream) |
Read short integer from specific input stream in little endian mode. More... | |
unsigned short | ReadUShortLE (wxInputStream *stream) |
Read unsigned short integer from specific input stream in little endian mode. More... | |
unsigned int | ReadUIntLE (wxInputStream *stream) |
Read unsigned integer from specific input stream in little endian mode. More... | |
wxString | ReadString (wxInputStream &stream) |
Read string from specific input stream. More... | |
Additional Inherited Members | |
![]() | |
wxString | m_fileName |
File name of the font file. More... | |
wxString | m_fontName |
Name of font. More... | |
wxInputStream * | m_inFont |
Font file input stream. More... | |
wxString | m_style |
Font style. More... | |
Class representing a Type1 font parser.
wxPdfFontParserType1::wxPdfFontParserType1 | ( | ) |
Default constructor.
|
virtual |
Default destructor.
wxPdfFontData* wxPdfFontParserType1::IdentifyFont | ( | const wxString & | fontFileName, |
int | fontIndex | ||
) |
Identify font based on a font file.
fontFileName | fully qualified name of the font file |
fontIndex | the index of the font within a font collection (if appropriate) |
bool wxPdfFontParserType1::LoadFontData | ( | wxPdfFontData * | fontData | ) |
Load the font data.
Before using a font it's data have be loaded into memory. This method tries to load the required font data for a previously identified font.
fontData | the font data instance to be loaded |
bool wxPdfFontParserType1::ParseFont | ( | const wxString & | fileName, |
wxInputStream * | fontFile, | ||
wxInputStream * | metricFile, | ||
bool | onlyNames | ||
) |
Parse font stream.
fileName | the name of the file containing the font data |
fontFile | the stream containing the font data |
metricFile | the stream containing the font metric data |
onlyNames | flag whether only the font names should be parsed or the full font data |
bool wxPdfFontParserType1::ReadAFM | ( | wxInputStream & | afmFile | ) |
Read font metrics from Adobe Font Metric file.
afmFile | stream containing the font metric data |
bool wxPdfFontParserType1::ReadPFM | ( | wxInputStream & | pfmFile | ) |
Read font metrics from Printer Font Metric file.
pfmFile | stream containing the font metric data |
bool wxPdfFontParserType1::ReadPFX | ( | wxInputStream * | pfxFile, |
bool | onlyNames | ||
) |
Read font data from font file.
pfxFile | stream containing the font data |
onlyNames | flag whether only the font names should be parsed or the full font data |