12#ifndef _PDF_FONT_PARSER_TYPE1_H_
13#define _PDF_FONT_PARSER_TYPE1_H_
27class wxPdfCffIndexArray;
34 wxPdfFontParserType1();
37 virtual ~wxPdfFontParserType1();
45 wxPdfFontData* IdentifyFont(
const wxString& fontFileName,
int fontIndex);
55 bool ParseFont(
const wxString& fileName, wxInputStream* fontFile, wxInputStream* metricFile,
bool onlyNames);
71 bool ReadAFM(wxInputStream& afmFile);
78 bool ReadPFM(wxInputStream& pfmFile);
89 bool ReadPFX(wxInputStream* pfxFile,
bool onlyNames);
93 wxMemoryOutputStream* ConvertMACtoPFB(wxInputStream* macFontStream);
96 bool CheckType1Format(wxInputStream* stream,
int& start,
int& length);
99 bool MetricIsAFM(wxInputStream* stream);
102 bool MetricIsPFM(wxInputStream* stream);
105 bool ReadPfbTag(wxInputStream* stream,
unsigned char& blocktype,
int& blocksize);
108 void CheckRestrictions(
long fsType);
111 void SkipComment(wxInputStream* stream);
114 void SkipSpaces(wxInputStream* stream);
117 void SkipLiteralString(wxInputStream* stream);
120 void SkipString(wxInputStream* stream);
123 void SkipProcedure(wxInputStream* stream);
126 void SkipArray(wxInputStream* stream);
129 void SkipToNextToken(wxInputStream* stream);
132 wxString GetToken(wxInputStream* stream);
135 wxString GetLiteralString(wxInputStream* stream);
138 wxString GetArray(wxInputStream* stream);
141 bool ParseDict(wxInputStream* stream,
int start,
int length,
bool onlyNames);
144 bool IsHexDigit(
char digit);
147 void DecodeHex(wxInputStream* inStream, wxOutputStream* outStream);
150 void DecodeEExec(wxMemoryOutputStream* eexecStream, wxOutputStream* outStream,
unsigned short seed,
int lenIV);
153 bool GetPrivateDict(wxInputStream* stream,
int start);
156 void ParseFontMatrix(wxInputStream* stream);
159 void ParseEncoding(wxInputStream* stream);
162 void ParseSubrs(wxInputStream* stream);
165 void ParseCharStrings(wxInputStream* stream);
168 void ParsePrivate(wxInputStream* stream);
171 void ReadBinary(wxInputStream& inStream,
int start,
int size, wxOutputStream& outStream);
177 wxArrayString m_encodingVector;
178 wxPdfFontType1GlyphWidthMap* m_glyphWidthMap;
182 bool m_subsetAllowed;
184 wxInputStream* m_privateDict;
187 bool m_fontDirAfterPrivate;
191 wxPdfCffIndexArray* m_charStringsIndex;
192 wxPdfCffIndexArray* m_subrsIndex;
Class representing Type 1 fonts. (For internal use only)
Definition: pdffontdatatype1.h:31
Base class for all fonts. (For internal use only)
Definition: pdffontdata.h:55
Class representing a font description.
Definition: pdffontdescription.h:24
Class representing font parsers.
Definition: pdffontparser.h:25
Definition of font data for Type1 fonts.
Interface of the wxPdfFontDescription class.
Interface of the TrueType/OpenType font parsing support classes.