Class CidFont


public class CidFont extends FontProgram
  • Field Details

    • fontName

      private String fontName
    • pdfFontFlags

      private int pdfFontFlags
    • compatibleCmaps

      private Set<String> compatibleCmaps
  • Constructor Details

  • Method Details

    • compatibleWith

      public boolean compatibleWith(String cmap)
    • getKerning

      public int getKerning(Glyph glyph1, Glyph glyph2)
      Description copied from class: FontProgram
      Gets the kerning between two glyphs.
      Specified by:
      getKerning in class FontProgram
      Parameters:
      glyph1 - the first glyph
      glyph2 - the second glyph
      Returns:
      the kerning to be applied
    • getPdfFontFlags

      public int getPdfFontFlags()
      Specified by:
      getPdfFontFlags in class FontProgram
    • isFontSpecific

      public boolean isFontSpecific()
      Overrides:
      isFontSpecific in class FontProgram
    • isBuiltWith

      public boolean isBuiltWith(String fontName)
      Description copied from class: FontProgram
      Checks whether the FontProgram was built with corresponding fontName. Default value is false unless overridden.
      Overrides:
      isBuiltWith in class FontProgram
      Parameters:
      fontName - a font name or path to a font program
      Returns:
      true, if the FontProgram was built with the fontProgram. Otherwise false.
    • initializeCidFontNameAndStyle

      private void initializeCidFontNameAndStyle(String fontName)
    • initializeCidFontProperties

      private void initializeCidFontProperties(Map<String,Object> fontDesc, String cmap)
    • getCompatibleUniMap

      private static String getCompatibleUniMap(String registry, String cmap)