12#ifndef _PDF_CFF_DECODER_H_
13#define _PDF_CFF_DECODER_H_
16#include <wx/dynarray.h>
18#include <wx/mstream.h>
19#include <wx/wfstream.h>
26const int NUM_STD_STRINGS = 391;
27const char SUBR_RETURN_OP = 11;
47 wxPdfSortedArrayInt* hGlobalSubrsUsed,
48 wxArrayInt* lGlobalSubrsUsed);
62 bool GetCharWidthAndComposite(
wxPdfCffIndexElement& charstring,
int& width,
bool& isComposite,
int& bchar,
int& achar);
69 int CalcBias(
int nSubrs);
82 void ReadASubr(wxInputStream* stream,
int begin,
int end,
83 int globalBias,
int localBias,
84 wxPdfSortedArrayInt& hSubrsUsed, wxArrayInt& lSubrsUsed,
85 wxPdfCffIndexArray& localSubIndex);
89 unsigned char ReadByte(wxInputStream* stream);
92 short ReadShort(wxInputStream* stream);
95 int ReadInt(wxInputStream* stream);
113 void ReadCommand(wxInputStream* stream);
116 int CalcHints(wxInputStream* stream,
int begin,
int end,
int globalBias,
int localBias, wxPdfCffIndexArray& localSubIndex);
119 wxPdfCffIndexArray* m_globalSubrIndex;
121 int m_charstringType;
129 wxPdfSortedArrayInt* m_hGlobalSubrsUsed;
130 wxArrayInt* m_lGlobalSubrsUsed;
Class representing CFF decoder for charstrings of type 1 and 2. (For internal use only)
Definition: pdfcffdecoder.h:35
Definition: pdfcffdecoder.cpp:197
Class representing a CFF index element.
Definition: pdfcffindex.h:24
Definition of array types.
Interface of the index structure for CFF fonts.
Compile time switches for the wxPdfDocument component.