Class Gpos
- java.lang.Object
-
- com.adobe.fontengine.font.opentype.Table
-
- com.adobe.fontengine.font.opentype.LayoutTable
-
- com.adobe.fontengine.font.opentype.LookupTable
-
- com.adobe.fontengine.font.opentype.Gpos
-
public final class Gpos extends LookupTable
Gives access to the 'GPOS' table.Applying features.
To apply features, the client first resolves a feature tag to a set of lookups, using the
resolveFeatureTag
method. Then, it invokes the GSUB engine to apply those lookups to the glyph run, using theapplyLookups
method. The client passes two objects toapplyLookups
, implementing theShaper
andSelector
interfaces respectively. TheShaper
object is used by the GPOS engine to access the glyphs as well as to report transformations to be done on the glyph run. TheSelector
object is used by the GPOS engine to learn if the feature should be applied at some positions. Thus, theShaper
andSelector
objects are the bulk of the interface between the client and the GPOS engine.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpticalSizeData
getOpticalSizeData(boolean compensateForFontBug)
Return the arguments of the 'size' feature.void
stream(Map tables)
-
Methods inherited from class com.adobe.fontengine.font.opentype.LookupTable
applyLookups, featureIsPresent, resolveFeatureTag
-
-
-
-
Method Detail
-
getOpticalSizeData
public OpticalSizeData getOpticalSizeData(boolean compensateForFontBug) throws InvalidFontException
Return the arguments of the 'size' feature. A number of fonts have been incorrectly constructed; it is not possible to recognize those fonts just from their GPOS table, so this method takes an argument that controls whether to compensate for the bug.- Throws:
InvalidFontException
-
stream
public void stream(Map tables)
-
-