PoDoFo 1.0.0
|
MacExpertEncoding. More...
#include <PdfPredefinedEncoding.h>
Protected Member Functions | |
const char32_t * | GetToUnicodeTable () const override |
Gets a table of 256 short values which are the big endian Unicode code points that are assigned to the 256 values of this encoding. | |
![]() | |
void | getExportObject (PdfIndirectObjectList &objects, PdfName &name, PdfObject *&obj) const override |
Get an export object that will be used during font init. | |
![]() | |
bool | tryGetCharCode (char32_t codePoint, PdfCharCode &codeUnit) const override |
Try get char code unit from unicode code point. | |
bool | tryGetCodePoints (const PdfCharCode &codeUnit, const unsigned *cidId, CodePointSpan &codePoints) const override |
Get code points from a code unit. | |
![]() | |
void | AppendToUnicodeEntries (OutputStream &stream, charbuff &temp) const override |
During a WriteToUnicodeCMap append "beginbfchar" and "beginbfrange" entries. | |
void | AppendCIDMappingEntries (OutputStream &stream, const PdfFont &font, charbuff &temp) const override |
During a PdfEncoding::ExportToFont() append "begincidchar" and/or "begincidrange" entries. | |
const PdfEncodingLimits & | GetLimits () const override |
PdfCIDToGIDMapConstPtr | GetIntrinsicCIDToGIDMap (const PdfDictionary &fontDict, const PdfFontMetrics &metrics) const override |
Get an intrisc CID to GID map, such as the ones implied by having a defined /Encoding entry with /TrueType, /Type3 fonts. | |
virtual void | GetBaseEncoding (const PdfEncodingMap *&baseEncoding, const PdfDifferenceMap *&differences) const |
![]() | |
virtual bool | tryGetNextCharCode (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCharCode &codeUnit) const |
Try get next char code unit from a utf8 string range. | |
virtual bool | tryGetCharCodeSpan (const unicodeview &ligature, PdfCharCode &codeUnit) const |
Try get next char code unit from a ligature. | |
virtual int | GetWModeRaw () const |
A code that specifies the writing mode for any CIDFont with which this map is combined (make sense when this is a CMap) | |
virtual void | AppendCodeSpaceRange (OutputStream &stream, charbuff &temp) const |
Friends | |
class | PdfEncodingMapFactory |
Additional Inherited Members | |
![]() | |
const PdfName & | GetName () const |
Get the name of this encoding. | |
![]() | |
bool | TryGetNextCharCode (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCharCode &codeUnit) const |
Try decode next char code from utf8 string range. | |
bool | TryGetCharCode (char32_t codePoint, PdfCharCode &codeUnit) const |
Try get next char code unit from unicode code point. | |
bool | TryGetCharCode (const unicodeview &codePoints, PdfCharCode &codeUnit) const |
Get the char code from a span of unicode code points. | |
bool | TryGetCharCode (unsigned cid, PdfCharCode &codeUnit) const |
Try get next char code unit from cid. | |
bool | TryGetNextCID (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCID &cid) const |
Try decode next cid from from encoded string range. | |
bool | TryGetNextCodePoints (std::string_view::iterator &it, const std::string_view::iterator &end, CodePointSpan &codePoints) const |
Try decode next code points from encoded string range. | |
bool | TryGetCodePoints (const PdfCharCode &codeUnit, CodePointSpan &codePoints) const |
Try get code points from char code unit. | |
PdfEncodingMapType | GetType () const |
Type of encoding, may be Simple or CMap. | |
virtual bool | HasLigaturesSupport () const |
True if the encoding has ligatures support. | |
![]() | |
static bool | TryGetCharNameFromCodePoint (char32_t codepoint, const PdfName *&name) |
Try get a latin text character name from a codepoint, as listed by ISO 32000-2:2020 Table D.1 "Latin-text encodings". | |
MacExpertEncoding.
Gets a table of 256 short values which are the big endian Unicode code points that are assigned to the 256 values of this encoding.
This table is used internally to convert an encoded string of this encoding to and from Unicode.
Implements PoDoFo::PdfBuiltInEncoding.