#include <PdfEncodingMap.h>
|
| bool | tryGetNextCharCode (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCharCode &codeUnit) const override |
| |
| bool | tryGetCharCodeSpan (const cspan< char32_t > &codePoints, PdfCharCode &codeUnit) const override |
| |
| bool | tryGetCharCode (char32_t codePoint, PdfCharCode &codeUnit) const override |
| |
| bool | tryGetCodePoints (const PdfCharCode &codeUnit, std::vector< char32_t > &codePoints) const override |
| |
| void | appendBaseFontEntries (PdfStream &stream) const override |
| |
| 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 |
| |
| virtual bool | tryGetCharCode (char32_t codePoint, PdfCharCode &codeUnit) const =0 |
| |
| virtual bool | tryGetCodePoints (const PdfCharCode &codeUnit, std::vector< char32_t > &codePoints) const =0 |
| |
| virtual void | getExportObject (PdfIndirectObjectList &objects, PdfName &name, PdfObject *&obj) const |
| |
| virtual void | appendBaseFontEntries (PdfStream &stream) const =0 |
| |
|
| 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 |
| |
Basic PdfEncodingMap implementation using a PdfCharCodeMap
◆ appendBaseFontEntries()
| void PdfEncodingMapBase::appendBaseFontEntries |
( |
PdfStream & |
stream | ) |
const |
|
overrideprotectedvirtual |
During a WriteToUnicodeCMap append "beginbfchar" and "beginbfrange" entries "bf" stands for Base Font, see Adobe tecnichal notes #5014
Implements mm::PdfEncodingMap.
◆ tryGetCharCode()
| bool PdfEncodingMapBase::tryGetCharCode |
( |
char32_t |
codePoint, |
|
|
PdfCharCode & |
codeUnit |
|
) |
| const |
|
overrideprotectedvirtual |
◆ tryGetCharCodeSpan()
| bool PdfEncodingMapBase::tryGetCharCodeSpan |
( |
const cspan< char32_t > & |
ligature, |
|
|
PdfCharCode & |
codeUnit |
|
) |
| const |
|
overrideprotectedvirtual |
Try get next char code unit from a ligature
- Parameters
-
| ligature | the span has at least 2 unicode code points |
Reimplemented from mm::PdfEncodingMap.
◆ tryGetCodePoints()
| bool PdfEncodingMapBase::tryGetCodePoints |
( |
const PdfCharCode & |
codeUnit, |
|
|
std::vector< char32_t > & |
codePoints |
|
) |
| const |
|
overrideprotectedvirtual |
Get code points from a code unit
- Parameters
-
| wantCID | true requires mapping to CID identifier, false for Unicode code points |
Implements mm::PdfEncodingMap.
◆ tryGetNextCharCode()
| bool PdfEncodingMapBase::tryGetNextCharCode |
( |
std::string_view::iterator & |
it, |
|
|
const std::string_view::iterator & |
end, |
|
|
PdfCharCode & |
codeUnit |
|
) |
| const |
|
overrideprotectedvirtual |
Try get next char code unit from a utf8 string range
Reimplemented from mm::PdfEncodingMap.