Class TrueTypeSubsetter

java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontsubsetting.TrueTypeSubsetter

public final class TrueTypeSubsetter extends Object
Class that can subset tru type fonts.
  • Method Details

    • subset

      public static void subset (com.itextpdf.kernel.font.PdfTrueTypeFont font, Set glyphs) throws IOException
      Subset true type font with provided set of glyphs.
      Parameters:
      font - true type font
      glyphs - set of glyphs to create subset
      Throws:
      IOException - if any input/output issue occurs