Class GsubLookupType3

java.lang.Object
com.itextpdf.io.font.otf.OpenTableLookup
com.itextpdf.io.font.otf.GsubLookupType3

public class GsubLookupType3 extends OpenTableLookup
LookupType 3: Alternate Substitution Subtable
  • Constructor Details

    • GsubLookupType3

      public GsubLookupType3 (OpenTypeFontTableReader openReader, int lookupFlag, int[] subTableLocations) throws IOException
      Creates a new GSUB Lookup Type 3.
      Parameters:
      openReader - the OpenType font reader
      lookupFlag - specifies processing options, e.g. whether to skip base glyphs, marks or ligatures during glyph substitution or positioning. See Lookup table
      subTableLocations - the sub table locations
      Throws:
      IOException - if the OpenType data cannot be read
  • Method Details

    • transformOne

      public boolean transformOne (GlyphLine line)
      Description copied from class: OpenTableLookup
      Apply transformation to only one glyph from the glyph line.
      Specified by:
      transformOne in class OpenTableLookup
      Parameters:
      line - the glyph line to transform
      Returns:
      true if transformation was applied, false otherwise
    • readSubTable

      protected void readSubTable (int subTableLocation) throws IOException
      Description copied from class: OpenTableLookup
      Reads subtable from the specified location.
      Specified by:
      readSubTable in class OpenTableLookup
      Parameters:
      subTableLocation - the subtable location
      Throws:
      IOException - exception is thrown in case an I/O error occurs when reading subtable
    • hasSubstitution

      public boolean hasSubstitution (int index)
      Description copied from class: OpenTableLookup
      Checks whether there is a substitution (replacement) for the specified index in this lookup table.
      Overrides:
      hasSubstitution in class OpenTableLookup
      Parameters:
      index - the index to check for a substitution
      Returns:
      true if there is substitution, false otherwise