![]() |
wxPdfDocument
1.4.0
Library for generating PDF documents from wxWidgets applications
|
Class representing a Type1 font parser. More...
#include <pdffontparsertype1.h>
Public Member Functions | |
| wxPdfFontParserType1 () | |
| Default constructor. | |
| virtual | ~wxPdfFontParserType1 () |
| Default destructor. | |
| wxPdfFontData * | IdentifyFont (const wxString &fontFileName, int fontIndex) |
| Identify font based on a font file. | |
| bool | ParseFont (const wxString &fileName, wxInputStream *fontFile, wxInputStream *metricFile, bool onlyNames) |
| Parse font stream. | |
| bool | LoadFontData (wxPdfFontData *fontData) |
| Load the font data. | |
| bool | ReadAFM (wxInputStream &afmFile) |
| Read font metrics from Adobe Font Metric file. | |
| bool | ReadPFM (wxInputStream &pfmFile) |
| Read font metrics from Printer Font Metric file. | |
| bool | ReadPFX (wxInputStream *pfxFile, bool onlyNames) |
| Read font data from font file. | |
| Public Member Functions inherited from wxPdfFontParser | |
| 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. | |
Additional Inherited Members | |
| Protected Attributes inherited from wxPdfFontParser | |
| 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. | |
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 |
true if the font data could be loaded successfully, false otherwise | 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 |
true if the parsing was successful, false otherwise | bool wxPdfFontParserType1::ReadAFM | ( | wxInputStream & | afmFile | ) |
Read font metrics from Adobe Font Metric file.
| afmFile | stream containing the font metric data |
true if the font metrics are valid, false otherwise | bool wxPdfFontParserType1::ReadPFM | ( | wxInputStream & | pfmFile | ) |
Read font metrics from Printer Font Metric file.
| pfmFile | stream containing the font metric data |
true if the font metrics are valid, false otherwise | 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 |
true if the font metrics are valid, false otherwise