Class TrueTypeFontSubSet

java.lang.Object
com.lowagie.text.pdf.TrueTypeFontSubSet

@Deprecated class TrueTypeFontSubSet extends Object
Deprecated.
Subsets a True Type font by removing the unneeded glyphs from the font.
  • Field Details

    • tableNamesSimple

      static final String[] tableNamesSimple
      Deprecated.
    • tableNamesCmap

      static final String[] tableNamesCmap
      Deprecated.
    • tableNamesExtra

      static final String[] tableNamesExtra
      Deprecated.
    • entrySelectors

      static final int[] entrySelectors
      Deprecated.
    • TABLE_CHECKSUM

      static final int TABLE_CHECKSUM
      Deprecated.
      See Also:
    • TABLE_OFFSET

      static final int TABLE_OFFSET
      Deprecated.
      See Also:
    • TABLE_LENGTH

      static final int TABLE_LENGTH
      Deprecated.
      See Also:
    • HEAD_LOCA_FORMAT_OFFSET

      static final int HEAD_LOCA_FORMAT_OFFSET
      Deprecated.
      See Also:
    • ARG_1_AND_2_ARE_WORDS

      static final int ARG_1_AND_2_ARE_WORDS
      Deprecated.
      See Also:
    • WE_HAVE_A_SCALE

      static final int WE_HAVE_A_SCALE
      Deprecated.
      See Also:
    • MORE_COMPONENTS

      static final int MORE_COMPONENTS
      Deprecated.
      See Also:
    • WE_HAVE_AN_X_AND_Y_SCALE

      static final int WE_HAVE_AN_X_AND_Y_SCALE
      Deprecated.
      See Also:
    • WE_HAVE_A_TWO_BY_TWO

      static final int WE_HAVE_A_TWO_BY_TWO
      Deprecated.
      See Also:
    • tableDirectory

      protected HashMap<String,int[]> tableDirectory
      Deprecated.
      Contains the location of the several tables. The key is the name of the table and the value is an int[3] where position 0 is the checksum, position 1 is the offset from the start of the file and position 2 is the length of the table.
    • rf

      Deprecated.
      The file in use.
    • fileName

      protected String fileName
      Deprecated.
      The file name.
    • includeCmap

      protected boolean includeCmap
      Deprecated.
    • includeExtras

      protected boolean includeExtras
      Deprecated.
    • locaShortTable

      protected boolean locaShortTable
      Deprecated.
    • locaTable

      protected int[] locaTable
      Deprecated.
    • glyphsUsed

      protected HashMap<Integer,int[]> glyphsUsed
      Deprecated.
    • glyphsInList

      protected ArrayList<Integer> glyphsInList
      Deprecated.
    • tableGlyphOffset

      protected int tableGlyphOffset
      Deprecated.
    • newLocaTable

      protected int[] newLocaTable
      Deprecated.
    • newLocaTableOut

      protected byte[] newLocaTableOut
      Deprecated.
    • newGlyfTable

      protected byte[] newGlyfTable
      Deprecated.
    • glyfTableRealSize

      protected int glyfTableRealSize
      Deprecated.
    • locaTableRealSize

      protected int locaTableRealSize
      Deprecated.
    • outFont

      protected byte[] outFont
      Deprecated.
    • fontPtr

      protected int fontPtr
      Deprecated.
    • directoryOffset

      protected int directoryOffset
      Deprecated.
  • Constructor Details

    • TrueTypeFontSubSet

      TrueTypeFontSubSet(String fileName, RandomAccessFileOrArray rf, HashMap<Integer,int[]> glyphsUsed, int directoryOffset, boolean includeCmap, boolean includeExtras)
      Deprecated.
      Creates a new TrueTypeFontSubSet
      Parameters:
      directoryOffset - The offset from the start of the file to the table directory
      fileName - the file name of the font
      glyphsUsed - the glyphs used
      includeCmap - true if the table cmap is to be included in the generated font
  • Method Details