Class CidFontProperties

java.lang.Object
com.itextpdf.io.font.CidFontProperties

public class CidFontProperties extends Object
Loads properties and CMap compatibility metadata for CID fonts.
  • Constructor Details

    • CidFontProperties

      public CidFontProperties()
  • Method Details

    • isCidFont

      public static boolean isCidFont (String fontName, String enc)
      Checks if it's a valid CJKFont font.
      Parameters:
      fontName - the font name
      enc - the encoding
      Returns:
      true if it is CJKFont
    • getCompatibleFont

      public static String getCompatibleFont (String enc)
      Finds a CID font compatible with an encoding.
      Parameters:
      enc - the CMap encoding name
      Returns:
      a compatible font name, or null when none is available
    • getAllFonts

      public static Map<String,Map<String,Object>> getAllFonts()
      Returns loaded font properties.
      Returns:
      the map of font properties
    • getRegistryNames

      public static Map<String,Set<String>> getRegistryNames()
      Returns loaded CID registry metadata.
      Returns:
      the map of registry names and values