Class LookupTable
- java.lang.Object
-
- com.adobe.fontengine.font.opentype.Table
-
- com.adobe.fontengine.font.opentype.LayoutTable
-
- com.adobe.fontengine.font.opentype.LookupTable
-
public abstract class LookupTable extends LayoutTable
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 Constructor Description LookupTable(FontByteArray buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intapplyLookups(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 Detail
-
LookupTable
public LookupTable(FontByteArray buffer) throws IOException, InvalidFontException, UnsupportedFontException
-
-
Method Detail
-
resolveFeatureTag
public int[][] resolveFeatureTag(int scriptTag, int langSysTag, int[] featureTags) throws InvalidFontExceptionResolves 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
public boolean featureIsPresent(int featureTag) throws InvalidFontException- Throws:
InvalidFontException
-
applyLookups
public int applyLookups(int[] lookupOffsets, AttributedRun run, int start, int limit, OTSelector selector, Gdef gdef) throws InvalidFontException- Throws:
InvalidFontException
-
-