PoDoFo 0.9.20
|
#include <PdfIdentityEncoding.h>
Public Member Functions | |
PdfIdentityEncoding (unsigned char codeSpaceSize) | |
PdfIdentityEncoding (PdfIdentityOrientation orientation) | |
![]() | |
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 unicodeview &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 |
PdfEncodingMapType | GetType () const |
virtual bool | IsBuiltinEncoding () const |
virtual bool | HasLigaturesSupport () const |
bool | TryGetExportObject (PdfIndirectObjectList &objects, PdfName &name, PdfObject *&obj) const |
Protected Member Functions | |
bool | tryGetCharCode (char32_t codePoint, PdfCharCode &codeUnit) const override |
bool | tryGetCodePoints (const PdfCharCode &codeUnit, std::vector< char32_t > &codePoints) const override |
void | getExportObject (PdfIndirectObjectList &objects, PdfName &name, PdfObject *&obj) const override |
void | AppendToUnicodeEntries (OutputStream &stream, charbuff &temp) const override |
void | AppendCIDMappingEntries (OutputStream &stream, const PdfFont &font, charbuff &temp) const override |
![]() | |
virtual bool | tryGetNextCharCode (std::string_view::iterator &it, const std::string_view::iterator &end, PdfCharCode &codeUnit) const |
virtual bool | tryGetCharCodeSpan (const unicodeview &ligature, PdfCharCode &codeUnit) const |
PdfIdentityEncoding is a two-byte encoding which can be used with TrueType fonts to represent all characters present in a font. If the font contains all unicode glyphs, PdfIdentityEncoding will support all unicode characters.
PdfIdentityEncoding::PdfIdentityEncoding | ( | unsigned char | codeSpaceSize | ) |
Create a new PdfIdentityEncoding.
codeSpaceSize | size of the codespace size |
PdfIdentityEncoding::PdfIdentityEncoding | ( | PdfIdentityOrientation | orientation | ) |
Create a standard 2 bytes CID PdfIdentityEncoding
|
overrideprotectedvirtual |
During a PdfEncoding::ExportToFont() append "begincidchar" and/or "begincidrange" entries. See Adobe tecnichal notes #5014\
To be called by PdfEncoding
Implements PoDoFo::PdfEncodingMap.
|
overrideprotectedvirtual |
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.
|
overrideprotectedvirtual |
Get an export object that will be used during font init
Reimplemented from PoDoFo::PdfEncodingMap.
|
overrideprotectedvirtual |
Try get char code unit from unicode code point
Implements PoDoFo::PdfEncodingMap.
|
overrideprotectedvirtual |
Get code points from a code unit
wantCID | true requires mapping to CID identifier, false for Unicode code points |
Implements PoDoFo::PdfEncodingMap.