Class BaseTTFSubsetter

java.lang.Object
org.sejda.sambox.pdmodel.font.BaseTTFSubsetter
All Implemented Interfaces:
Function<String,COSStream>

public abstract class BaseTTFSubsetter extends Object implements Function<String,COSStream>
Skeletal implementation for a TTF subsetter. To be used to subset embedded TrueType font and Type 0 fonts with CIDFontType2 descendant This is based on the TTFSubsetter in FontBox.
Author:
Andrea Vacondio
  • Constructor Details

    • BaseTTFSubsetter

      public BaseTTFSubsetter(COSDictionary existingFont, COSStream fontFileStream, org.apache.fontbox.ttf.TrueTypeFont font) throws IOException
      Parameters:
      existingFont - the font dictionary that will be updated
      fontFileStream - the corresponding not subsetted FontFile2
      font - the existing and already parsed font. If null the fontFileStream will be parsed to get the ttf font when needed
      Throws:
      IOException
    • BaseTTFSubsetter

      public BaseTTFSubsetter(COSDictionary existingFont, COSStream fontFileStream) throws IOException
      Throws:
      IOException
  • Method Details