Class LookupTypeSingleSubstFormat2
java.lang.Object
org.apache.fontbox.ttf.table.common.LookupSubTable
org.apache.fontbox.ttf.table.gsub.LookupTypeSingleSubstFormat2
This class is a part of the GSUB — Glyph
Substitution Table system of tables in the Open Type Font specs. This is a part of the LookupType
1: Single Substitution Subtable. It specifically models the
Single
Substitution Format 2.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLookupTypeSingleSubstFormat2(int substFormat, CoverageTable coverageTable, int[] substituteGlyphIDs) -
Method Summary
Modifier and TypeMethodDescriptionintdoSubstitution(int gid, int coverageIndex) int[]toString()Methods inherited from class org.apache.fontbox.ttf.table.common.LookupSubTable
getCoverageTable, getSubstFormat
-
Field Details
-
substituteGlyphIDs
private final int[] substituteGlyphIDs
-
-
Constructor Details
-
LookupTypeSingleSubstFormat2
public LookupTypeSingleSubstFormat2(int substFormat, CoverageTable coverageTable, int[] substituteGlyphIDs)
-
-
Method Details
-
doSubstitution
public int doSubstitution(int gid, int coverageIndex) - Specified by:
doSubstitutionin classLookupSubTable
-
getSubstituteGlyphIDs
public int[] getSubstituteGlyphIDs() -
toString
-