Top Description Fields Constructors Methods
org.apache.fontbox.ttf.table.gsub

public Class LookupTypeSingleSubstFormat2

extends LookupSubTable
Class Inheritance
Imports
java.util.Arrays, org.apache.fontbox.ttf.table.common.CoverageTable, .LookupSubTable

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.
Author
Palash Ray

Field Summary

Modifier and TypeField and Description
private final int[]

Constructor Summary

AccessConstructor and Description
public
LookupTypeSingleSubstFormat2(int substFormat, CoverageTable coverageTable, int[] substituteGlyphIDs)

Method Summary

Modifier and TypeMethod and Description
public int
public int[]
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.fontbox.ttf.table.common.LookupSubTable:
getCoverageTablegetSubstFormat

Field Detail

substituteGlyphIDsback to summary
private final int[] substituteGlyphIDs

Constructor Detail

LookupTypeSingleSubstFormat2back to summary
public LookupTypeSingleSubstFormat2(int substFormat, CoverageTable coverageTable, int[] substituteGlyphIDs)

Method Detail

doSubstitutionback to summary
public int doSubstitution(int gid, int coverageIndex)

Implements abstract org.apache.fontbox.ttf.table.common.LookupSubTable.doSubstitution.

Annotations
@Override
getSubstituteGlyphIDsback to summary
public int[] getSubstituteGlyphIDs()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override