Class representing CFF decoder for charstrings of type 1 and 2. (For internal use only)
More...
#include <pdfcffdecoder.h>
|
| 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.
|
|
|
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.
|
|
Class representing CFF decoder for charstrings of type 1 and 2. (For internal use only)
◆ wxPdfCffDecoder() [1/2]
wxPdfCffDecoder::wxPdfCffDecoder |
( |
| ) |
|
◆ wxPdfCffDecoder() [2/2]
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 |
◆ ~wxPdfCffDecoder()
virtual wxPdfCffDecoder::~wxPdfCffDecoder |
( |
| ) |
|
|
virtual |
◆ CalcBias()
int wxPdfCffDecoder::CalcBias |
( |
int | nSubrs | ) |
|
Calculate the bias.
- Parameters
-
nSubrs | the number of subroutines |
- Returns
- the bias
◆ CalcHints()
int wxPdfCffDecoder::CalcHints |
( |
wxInputStream * | stream, |
|
|
int | begin, |
|
|
int | end, |
|
|
int | globalBias, |
|
|
int | localBias, |
|
|
wxPdfCffIndexArray & | localSubIndex ) |
|
protected |
◆ EmptyStack()
void wxPdfCffDecoder::EmptyStack |
( |
| ) |
|
|
protected |
◆ GetCharWidthAndComposite()
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 |
◆ HandleStack()
void wxPdfCffDecoder::HandleStack |
( |
| ) |
|
|
protected |
Handle the stack based on the last operator on stack.
◆ PopStack()
void wxPdfCffDecoder::PopStack |
( |
| ) |
|
|
protected |
Pop an entry from the stack.
◆ PushStack()
void wxPdfCffDecoder::PushStack |
( |
| ) |
|
|
protected |
Push an entry on the stack.
◆ ReadASubr()
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 |
◆ ReadByte()
unsigned char wxPdfCffDecoder::ReadByte |
( |
wxInputStream * | stream | ) |
|
|
protected |
Read a byte from an input stream.
◆ ReadCommand()
void wxPdfCffDecoder::ReadCommand |
( |
wxInputStream * | stream | ) |
|
|
protected |
Read a command from the input stream.
◆ ReadInt()
int wxPdfCffDecoder::ReadInt |
( |
wxInputStream * | stream | ) |
|
|
protected |
Read an integer from an input stream.
◆ ReadShort()
short wxPdfCffDecoder::ReadShort |
( |
wxInputStream * | stream | ) |
|
|
protected |
Read a short integer from an input stream.
◆ StackOpp()
int wxPdfCffDecoder::StackOpp |
( |
| ) |
|
|
protected |
Get the type of the last operator on stack.
The documentation for this class was generated from the following file: