![]() |
wxPdfDocument 1.3.1
|
Class representing OpenType Font Subsets. (For internal use only) More...
#include <pdffontsubsetcff.h>
Public Member Functions | |
| wxPdfFontSubsetCff (const wxString &fileName) | |
| Default constructor. | |
| virtual | ~wxPdfFontSubsetCff () |
| Default destructor. | |
| void | DestructDictionary (wxPdfCffDictionary *dict) |
| Destruct dictionary. | |
| wxMemoryOutputStream * | CreateSubset (wxInputStream *inFont, wxPdfChar2GlyphMap *glyphsUsed, bool includeCmap=false) |
| Create subset of a font. | |
Protected Member Functions | |
| bool | ReadCffFont () |
| Read a font which is in CFF format. | |
| bool | ReadHeader () |
| Read the font header. | |
| bool | ReadFontName () |
| Read the font name. | |
| bool | ReadTopDict () |
| Read the top dictionary. | |
| bool | ReadStrings () |
| Read the list of strings. | |
| bool | ReadGlobalSubroutines () |
| read the global subroutines | |
| bool | ReadFontIndex (wxPdfCffIndexArray *index) |
| Read a font index. | |
| bool | ReadFontDict (wxPdfCffDictionary *dict, int dictOffset, int dictSize) |
| Read a font dictionary. | |
| bool | ReadFdSelect () |
| Read a FD selector. | |
| bool | ReadCidFontDict () |
| Read the font dictionary of a CID font. | |
| bool | ReadPrivateDict (wxPdfCffDictionary *privateDict, wxPdfCffIndexArray *localSubIndex, int offset, int size) |
| Read a private dictionary. | |
| wxPdfCffDictElement * | FindDictElement (wxPdfCffDictionary *dict, int key) |
| Find a dictionary element. | |
| void | SetDictElementArgument (wxPdfCffDictionary *dict, int key, wxMemoryOutputStream &buffer) |
| Set the argument of a dictionary element. | |
| void | RemoveDictElement (wxPdfCffDictionary *dict, int key) |
| Remove an element from a dictionary. | |
| int | DecodeInteger () |
| Decode an integer. | |
| void | EncodeIntegerMax (int value, wxMemoryOutputStream &buffer) |
| Encode an integer using maximal size. | |
| void | EncodeInteger (int value, wxMemoryOutputStream &buffer) |
| Encode an integer. | |
| void | SeekI (int offset) |
| Seek to offset in the default font input stream. | |
| int | TellI () |
| Get the current position in the default font input stream. | |
| int | GetSizeI () |
| Get the size of the default font input stream. | |
| unsigned char | ReadByte () |
| Read a byte from the default font input stream. | |
| short | ReadShort () |
| Read a short integer from the default font input stream. | |
| int | ReadInt () |
| Read an integer from the default font input stream. | |
| int | ReadOffset (int offSize) |
| Read an offset of specific size from the default font input stream. | |
| int | ReadOperandLength () |
| Read the length of an operand from the default font input stream. | |
| int | ReadOperator () |
| Read an operator from the default font input stream. | |
| wxString | ReadString (int length) |
| Read a string from the default font input stream. | |
| void | GenerateFontSubset () |
| Generate the subset. | |
| void | SetRosStrings () |
| Set the ROS strings. | |
| void | SubsetCharstrings () |
| Build the subset of the charstrings' list. | |
| void | SubsetFontDict () |
| Build the subset of the font dictionary. | |
| void | CreateCidFontDict () |
| Create a dictionary for a CID font. | |
| void | SubsetStrings () |
| Build the subset of the strings' list. | |
| void | SubsetDictString (wxPdfCffDictionary *dict, int op) |
| Build the subset of a dictionary string. | |
| void | SubsetDictStrings (wxPdfCffDictionary *dict) |
| Build the subset of the strings' dictionary. | |
| void | SeekO (int offset) |
| Seek offset in the default output stream. | |
| int | TellO () |
| Get the current position in the default output stream. | |
| void | WriteFontSubset () |
| Write the font's subset to the default output stream. | |
| void | WriteHeader () |
| Write the font header. | |
| void | WriteName () |
| Write the font's name. | |
| void | WriteTopDict () |
| Write the top dictionary. | |
| void | WriteDict (wxPdfCffDictionary *dict) |
| Write a dictionary. | |
| void | WriteDictOperator (wxPdfCffDictElement *op) |
| Write a dictionary operator. | |
| void | SetTopDictOperatorToCurrentPosition (int op) |
| Set a top dictionary operator to the current position. | |
| int | GetLocation (wxPdfCffDictionary *dict, int op) |
| Get the location of a dictionary in the default output stream. | |
| void | WriteStrings () |
| Write the list of strings. | |
| void | WriteGlobalSubrs () |
| Write the list of global subroutines. | |
| void | WriteCharset () |
| Write the charset. | |
| void | WriteFdSelect () |
| Write the FD selector. | |
| void | WriteCharStrings () |
| Write the list of charstrings. | |
| void | WriteCidFontDict () |
| Write the CID font dictionary. | |
| void | WriteCidPrivateDictAndLocalSub () |
| Write a CID private dictionary and local subroutines. | |
| void | WritePrivateDict (int dictNum, wxPdfCffDictionary *parentDict, wxPdfCffDictionary *privateDict) |
| Write a private dictionary. | |
| void | WriteLocalSub (int dictNum, wxPdfCffDictionary *privateDict, wxPdfCffIndexArray *localSubIndex) |
| Write the local subroutines. | |
| void | WriteIndex (wxPdfCffIndexArray *index) |
| Write an index. | |
| void | WriteInteger (int value, int size, wxMemoryOutputStream *buffer) |
| Write an integer. | |
| void | FindLocalAndGlobalSubrsUsed () |
| Find the local and global subroutines used. | |
| void | SubsetSubrs (wxPdfCffIndexArray &subrIndex, wxPdfSortedArrayInt &subrsUsed) |
| Build the subset of the subroutines. | |
| void | FindSubrsUsed (int fd, wxPdfCffIndexArray &localSubIndex, wxPdfSortedArrayInt &hSubrsUsed, wxArrayInt &lSubrsUsed) |
| Find the subroutines used. | |
| void | FindGlobalSubrsUsed () |
| Find the global subroutines use. | |
Class representing OpenType Font Subsets. (For internal use only)
| wxPdfFontSubsetCff::wxPdfFontSubsetCff | ( | const wxString & | fileName | ) |
Default constructor.
|
virtual |
Default destructor.
|
protected |
Create a dictionary for a CID font.
| wxMemoryOutputStream * wxPdfFontSubsetCff::CreateSubset | ( | wxInputStream * | inFont, |
| wxPdfChar2GlyphMap * | glyphsUsed, | ||
| bool | includeCmap = false ) |
Create subset of a font.
| inFont | stream containing the font data |
| glyphsUsed | a list of used glyphs |
| includeCmap | flag whether to include the CMap table |
|
protected |
Decode an integer.
| void wxPdfFontSubsetCff::DestructDictionary | ( | wxPdfCffDictionary * | dict | ) |
Destruct dictionary.
| dict | reference of the dictionary to be destructed |
|
protected |
Encode an integer.
|
protected |
Encode an integer using maximal size.
|
protected |
Find a dictionary element.
|
protected |
Find the global subroutines use.
|
protected |
Find the local and global subroutines used.
|
protected |
Find the subroutines used.
|
protected |
Generate the subset.
|
protected |
Get the location of a dictionary in the default output stream.
|
protected |
Get the size of the default font input stream.
|
protected |
Read a byte from the default font input stream.
|
protected |
Read a font which is in CFF format.
|
protected |
Read the font dictionary of a CID font.
|
protected |
Read a FD selector.
|
protected |
Read a font dictionary.
|
protected |
Read a font index.
|
protected |
Read the font name.
|
protected |
read the global subroutines
|
protected |
Read the font header.
|
protected |
Read an integer from the default font input stream.
|
protected |
Read an offset of specific size from the default font input stream.
|
protected |
Read the length of an operand from the default font input stream.
|
protected |
Read an operator from the default font input stream.
|
protected |
Read a private dictionary.
|
protected |
Read a short integer from the default font input stream.
|
protected |
Read a string from the default font input stream.
|
protected |
Read the list of strings.
|
protected |
Read the top dictionary.
|
protected |
Remove an element from a dictionary.
|
protected |
Seek to offset in the default font input stream.
|
protected |
Seek offset in the default output stream.
|
protected |
Set the argument of a dictionary element.
|
protected |
Set the ROS strings.
|
protected |
Set a top dictionary operator to the current position.
|
protected |
Build the subset of the charstrings' list.
|
protected |
Build the subset of a dictionary string.
|
protected |
Build the subset of the strings' dictionary.
|
protected |
Build the subset of the font dictionary.
|
protected |
Build the subset of the strings' list.
|
protected |
Build the subset of the subroutines.
|
protected |
Get the current position in the default font input stream.
|
protected |
Get the current position in the default output stream.
|
protected |
Write the charset.
|
protected |
Write the list of charstrings.
|
protected |
Write the CID font dictionary.
|
protected |
Write a CID private dictionary and local subroutines.
|
protected |
Write a dictionary.
|
protected |
Write a dictionary operator.
|
protected |
Write the FD selector.
|
protected |
Write the font's subset to the default output stream.
|
protected |
Write the list of global subroutines.
|
protected |
Write the font header.
|
protected |
Write an index.
|
protected |
Write an integer.
|
protected |
Write the local subroutines.
|
protected |
Write the font's name.
|
protected |
Write a private dictionary.
|
protected |
Write the list of strings.
|
protected |
Write the top dictionary.