|
pdfmm
0.9.20
|
#include <PdfDifferenceEncoding.h>
Public Member Functions | |
| PdfDifferenceEncoding (const PdfEncodingDifference &difference, PdfBaseEncoding baseEncoding) | |
| PdfDifferenceEncoding (const PdfObject &obj, bool explicitNames=false) | |
| const PdfEncodingDifference & | GetDifferences () const |
Public Member Functions inherited from mm::PdfEncodingMap | |
| bool | TryGetNextCharCode (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCharCode &codeUnit) const |
| bool | TryGetCharCode (char32_t codePoint, PdfCharCode &codeUnit) const |
| bool | TryGetCharCode (const cspan< char32_t > &codePoints, PdfCharCode &codeUnit) const |
| bool | TryGetCharCode (unsigned cid, PdfCharCode &codeUnit) const |
| bool | TryGetNextCID (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCID &cid) const |
| bool | TryGetNextCodePoints (std::string_view::iterator &it, const std::string_view::iterator &end, std::vector< char32_t > &codePoints) const |
| bool | TryGetCodePoints (const PdfCharCode &codeUnit, std::vector< char32_t > &codePoints) const |
| bool | TryGetCIDId (const PdfCharCode &codeUnit, unsigned &id) const |
| virtual bool | HasCIDMapping () const |
| virtual bool | HasLigaturesSupport () const |
| bool | TryGetExportObject (PdfIndirectObjectList &objects, PdfName &name, PdfObject *&obj) const |
Static Public Member Functions | |
| static char32_t | NameToUnicodeID (const PdfName &name) |
| static PdfName | UnicodeIDToName (char32_t inCodePoint) |
Protected Member Functions | |
| void | getExportObject (PdfIndirectObjectList &objects, PdfName &name, PdfObject *&obj) const override |
| bool | tryGetCharCode (char32_t codePoint, PdfCharCode &codeUnit) const override |
| bool | tryGetCodePoints (const PdfCharCode &codeUnit, std::vector< char32_t > &codePoints) const override |
Protected Member Functions inherited from mm::PdfEncodingMapSimple | |
| void | appendBaseFontEntries (PdfStream &stream) const override |
Protected Member Functions inherited from mm::PdfEncodingMap | |
| virtual bool | tryGetNextCharCode (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCharCode &codeUnit) const |
| virtual bool | tryGetCharCodeSpan (const cspan< char32_t > &ligature, PdfCharCode &codeUnit) const |
PdfDifferenceEncoding is an encoding, which is based on either the fonts encoding or a predefined encoding and defines differences to this base encoding.
| PdfDifferenceEncoding::PdfDifferenceEncoding | ( | const PdfEncodingDifference & | difference, |
| PdfBaseEncoding | baseEncoding | ||
| ) |
Create a new PdfDifferenceEncoding which is based on a predefined encoding.
| difference | the differences in this encoding |
| eBaseEncoding | the base encoding of this font |
| PdfDifferenceEncoding::PdfDifferenceEncoding | ( | const PdfObject & | obj, |
| bool | explicitNames = false |
||
| ) |
Create a new PdfDifferenceEncoding from an existing object in a PDF file.
| obj | an existing differences encoding |
| bAutoDelete | if true the encoding is deleted by its owning font |
| bExplicitNames | if true, glyph names are meaningless explicit keys on the font (used for Type3 fonts) |
|
inline |
Get read-only access to the object containing the actual differences.
|
overrideprotectedvirtual |
Get an export object that will be used during font init
Reimplemented from mm::PdfEncodingMap.
|
static |
Convert a standard character name to a unicode code point
| name | a standard character name |
|
overrideprotectedvirtual |
Try get char code unit from unicode code point
Implements mm::PdfEncodingMap.
|
overrideprotectedvirtual |
Get code points from a code unit
| wantCID | true requires mapping to CID identifier, false for Unicode code points |
Implements mm::PdfEncodingMap.
|
static |
Convert an unicode code point to a standard character name
| inCodePoint | a code point |
1.8.14