class HexaPDF::Font::CMap::Writer

Parent

Creates a CMap file, either a ToUnicode CMap or a CID CMap.

Constants

MAX_ENTRIES_IN_SECTION

Maximum number of entries in one section.

Public Instance Methods

create_cid_cmap(mapping)

Returns a CID CMap for the given input code to CID mapping which needs to be sorted by input codes.

Note that the returned CMap always uses a 16-bit input code space!

create_to_unicode_cmap(mapping)

Returns a ToUnicode CMap for the given input code to Unicode codepoint mapping which needs to be sorted by input codes.

Note that the returned CMap always uses a 16-bit input code space!