Class CMapCodepointToCid

java.lang.Object
com.itextpdf.io.font.cmap.AbstractCMap
com.itextpdf.io.font.cmap.CMapCodepointToCid

public class CMapCodepointToCid extends AbstractCMap
Class represents real codepoint-CID mapping without any additional manipulation.

See CMapCidToCodepoint for CID-codepoint representation.

  • Constructor Details

    • CMapCodepointToCid

      public CMapCodepointToCid()
      Creates an empty character code to CID map.
    • CMapCodepointToCid

      public CMapCodepointToCid (CMapCidToCodepoint reverseMap)
      Creates a map by reversing a CID to code mapping.
      Parameters:
      reverseMap - the CID to code mapping to reverse
  • Method Details

    • lookup

      public int lookup (int codepoint)
      Looks up the CID assigned to a character code.
      Parameters:
      codepoint - the integer representation of the encoded character code
      Returns:
      the mapped CID, or 0 when absent