Class representing CFF decoder for charstrings of type 1 and 2. (For internal use only)
More...
#include <pdfcffdecoder.h>
List of all members.
Public Member Functions |
| wxPdfCffDecoder () |
| Default constructor.
|
| wxPdfCffDecoder (wxPdfCffIndexArray *globalSubrIndex, wxPdfSortedArrayInt *hGlobalSubrsUsed, wxArrayInt *lGlobalSubrsUsed) |
| Constructor.
|
virtual | ~wxPdfCffDecoder () |
| Default destructor.
|
bool | GetCharWidthAndComposite (wxPdfCffIndexElement &charstring, int &width, bool &isComposite, int &bchar, int &achar) |
| Get character width and composites.
|
int | CalcBias (int nSubrs) |
| Calculate the bias.
|
void | ReadASubr (wxInputStream *stream, int begin, int end, int globalBias, int localBias, wxPdfSortedArrayInt &hSubrsUsed, wxArrayInt &lSubrsUsed, wxPdfCffIndexArray &localSubIndex) |
| Read a subroutine from an input stream.
|
Protected Member Functions |
unsigned char | ReadByte (wxInputStream *stream) |
| Read a byte from an input stream.
|
short | ReadShort (wxInputStream *stream) |
| Read a short integer from an input stream.
|
int | ReadInt (wxInputStream *stream) |
| Read an integer from an input stream.
|
void | HandleStack () |
| Handle the stack based on the last operator on stack.
|
int | StackOpp () |
| Get the type of the last operator on stack.
|
void | EmptyStack () |
| Empty the stack.
|
void | PopStack () |
| Pop an entry from the stack.
|
void | PushStack () |
| Push an entry on the stack.
|
void | ReadCommand (wxInputStream *stream) |
| Read a command from the input stream.
|
int | CalcHints (wxInputStream *stream, int begin, int end, int globalBias, int localBias, wxPdfCffIndexArray &localSubIndex) |
| Calculate the hints.
|
Detailed Description
Class representing CFF decoder for charstrings of type 1 and 2. (For internal use only)
Constructor & Destructor Documentation
wxPdfCffDecoder::wxPdfCffDecoder |
( |
| ) |
|
wxPdfCffDecoder::wxPdfCffDecoder |
( |
wxPdfCffIndexArray * |
globalSubrIndex, |
|
|
wxPdfSortedArrayInt * |
hGlobalSubrsUsed, |
|
|
wxArrayInt * |
lGlobalSubrsUsed |
|
) |
| |
Constructor.
- Parameters:
-
globalSubrIndex | the global subroutine index |
hGlobalSubrsUsed | sorted list of used global subroutines |
lGlobalSubrsUsed | unordered list of used global subroutines |
virtual wxPdfCffDecoder::~wxPdfCffDecoder |
( |
| ) |
|
|
virtual |
Member Function Documentation
int wxPdfCffDecoder::CalcBias |
( |
int |
nSubrs | ) |
|
Calculate the bias.
- Parameters:
-
nSubrs | the number of subroutines |
- Returns:
- the bias
int wxPdfCffDecoder::CalcHints |
( |
wxInputStream * |
stream, |
|
|
int |
begin, |
|
|
int |
end, |
|
|
int |
globalBias, |
|
|
int |
localBias, |
|
|
wxPdfCffIndexArray & |
localSubIndex |
|
) |
| |
|
protected |
void wxPdfCffDecoder::EmptyStack |
( |
| ) |
|
|
protected |
bool wxPdfCffDecoder::GetCharWidthAndComposite |
( |
wxPdfCffIndexElement & |
charstring, |
|
|
int & |
width, |
|
|
bool & |
isComposite, |
|
|
int & |
bchar, |
|
|
int & |
achar |
|
) |
| |
Get character width and composites.
From a charstring entry the character width and - if appropriate - the composites are extracted.
- Parameters:
-
[in] | charstring | the charstring entry |
[out] | width | the character width |
[out] | isComposite | flag whether the charstring describes a composite |
[out] | bchar | the base character of the composite |
[out] | achar | the accent character of the composite |
void wxPdfCffDecoder::HandleStack |
( |
| ) |
|
|
protected |
Handle the stack based on the last operator on stack.
void wxPdfCffDecoder::PopStack |
( |
| ) |
|
|
protected |
Pop an entry from the stack.
void wxPdfCffDecoder::PushStack |
( |
| ) |
|
|
protected |
Push an entry on the stack.
void wxPdfCffDecoder::ReadASubr |
( |
wxInputStream * |
stream, |
|
|
int |
begin, |
|
|
int |
end, |
|
|
int |
globalBias, |
|
|
int |
localBias, |
|
|
wxPdfSortedArrayInt & |
hSubrsUsed, |
|
|
wxArrayInt & |
lSubrsUsed, |
|
|
wxPdfCffIndexArray & |
localSubIndex |
|
) |
| |
Read a subroutine from an input stream.
- Parameters:
-
stream | the input stream |
begin | start position of the subroutine in the input stream |
end | end position of the subroutine in the input stream |
globalBias | value of the global bias |
localBias | value of the local bias |
hSubrsUsed | sorted list of used subroutines |
lSubrsUsed | unordered list of used subroutines |
localSubIndex | the local subroutine index |
unsigned char wxPdfCffDecoder::ReadByte |
( |
wxInputStream * |
stream | ) |
|
|
protected |
Read a byte from an input stream.
void wxPdfCffDecoder::ReadCommand |
( |
wxInputStream * |
stream | ) |
|
|
protected |
Read a command from the input stream.
int wxPdfCffDecoder::ReadInt |
( |
wxInputStream * |
stream | ) |
|
|
protected |
Read an integer from an input stream.
short wxPdfCffDecoder::ReadShort |
( |
wxInputStream * |
stream | ) |
|
|
protected |
Read a short integer from an input stream.
int wxPdfCffDecoder::StackOpp |
( |
| ) |
|
|
protected |
Get the type of the last operator on stack.
The documentation for this class was generated from the following file: