Class LookupTable
java.lang.Object
com.adobe.fontengine.font.opentype.Table
com.adobe.fontengine.font.opentype.LayoutTable
com.adobe.fontengine.font.opentype.LookupTable
A LookupTable is the base class for GSUB/GPOS tables.
It captures:
- the resolution of feature tags to lookup indices
- the common lookup types (contextual, chaining contextual and extension)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintapplyLookups(int[] lookupOffsets, AttributedRun run, int start, int limit, OTSelector selector, Gdef gdef) booleanfeatureIsPresent(int featureTag) int[][]resolveFeatureTag(int scriptTag, int langSysTag, int[] featureTags) Resolves a script/lang/feature list to a set of lookup offsets.
-
Constructor Details
-
LookupTable
public LookupTable(FontByteArray buffer) throws IOException, InvalidFontException, UnsupportedFontException
-
-
Method Details
-
resolveFeatureTag
public int[][] resolveFeatureTag(int scriptTag, int langSysTag, int[] featureTags) throws InvalidFontException Resolves a script/lang/feature list to a set of lookup offsets. The lookups of the required feature are not included, but can be obtained by resolvingTag.feature_REQUIRED.- Parameters:
scriptTag- the script under which to resolve the featurelangSysTag- the langage under which to resolve the featurefeatureTags- the features to resolve- Returns:
- array of lookup offsets; may be empty but never null
- Throws:
InvalidFontException
-
featureIsPresent
- Throws:
InvalidFontException
-
applyLookups
public int applyLookups(int[] lookupOffsets, AttributedRun run, int start, int limit, OTSelector selector, Gdef gdef) throws InvalidFontException - Throws:
InvalidFontException
-