Basic PdfEncodingMap implementation using a PdfCharCodeMap.
More...
#include <PdfEncodingMap.h>
|
const PdfCharCodeMap & | GetCharMap () const |
|
const PdfEncodingLimits & | GetLimits () const override |
|
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 PdfPredefinedEncodingType | GetPredefinedEncodingType () const |
| True if the encoding is builtin in a font program.
|
|
virtual bool | HasLigaturesSupport () const |
| True if the encoding has ligatures support.
|
|
|
| PdfEncodingMapBase (PdfCharCodeMap &&map, PdfEncodingMapType type) |
|
bool | tryGetNextCharCode (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCharCode &codeUnit) const override |
| Try get next char code unit from a utf8 string range.
|
|
bool | tryGetCharCodeSpan (const unicodeview &codePoints, PdfCharCode &codeUnit) const override |
| Try get next char code unit from a ligature.
|
|
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 | AppendCodeSpaceRange (OutputStream &stream, charbuff &temp) const override |
|
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.
|
|
virtual void | getExportObject (PdfIndirectObjectList &objects, PdfName &name, PdfObject *&obj) const |
| Get an export object that will be used during font init.
|
|
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)
|
|
|
class | PdfDynamicEncodingMap |
|
Basic PdfEncodingMap implementation using a PdfCharCodeMap.
◆ AppendCIDMappingEntries()
During a PdfEncoding::ExportToFont() append "begincidchar" and/or "begincidrange" entries.
See Adobe tecnichal notes #5014\
To be called by PdfEncoding
Implements PoDoFo::PdfEncodingMap.
◆ AppendCodeSpaceRange()
◆ AppendToUnicodeEntries()
During a WriteToUnicodeCMap append "beginbfchar" and "beginbfrange" entries.
"bf" stands for Base Font, see Adobe tecnichal notes #5014
To be called by PdfEncoding
Implements PoDoFo::PdfEncodingMap.
◆ GetLimits()
const PdfEncodingLimits & PdfEncodingMapBase::GetLimits |
( |
| ) |
const |
|
overridevirtual |
◆ tryGetCharCode()
◆ tryGetCharCodeSpan()
Try get next char code unit from a ligature.
- Parameters
-
ligature | the span has at least 2 unicode code points |
Reimplemented from PoDoFo::PdfEncodingMap.
◆ tryGetCodePoints()
Get code points from a code unit.
- Parameters
-
cidId | CID identifier that if available some encodings can benefit to fetch code points faster |
Implements PoDoFo::PdfEncodingMap.
◆ tryGetNextCharCode()
bool PdfEncodingMapBase::tryGetNextCharCode |
( |
std::string_view::iterator & |
it, |
|
|
const std::string_view::iterator & |
end, |
|
|
PdfCharCode & |
codeUnit |
|
) |
| const |
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: