| Modifier and Type | Field and Description |
|---|---|
| private FeatureListTable | |
| private GsubData | |
| private String | |
| private static final Log | |
| private final Map | |
| private LookupListTable | |
| private final Map | |
| private Map | |
| public static final String | |
| private static final Pattern | WORDPATTERN
The regex represents 4 'word characters' [a-zA-Z_0-9], see
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private boolean | |
| private int | |
| private List | Returns: The indicatedFeatureRecordsThe langSysTables, final List<String> LangSysTables indicating FeatureRecords to search
forAn optional list of feature tags ( enabledFeatures)null to allow all)Get a list of |
| public GsubData | Returns: the GsubData instance representing the tableReturns a GsubData instance containing all scripts of the table. |
| public GsubData | Returns: GSUB data for the given script ornull if no such script in the fonta script tag
for which the data is needed scriptTag)Builds a new |
| private Collection | |
| public int | Returns: the id of the glyph substitutionGID gid, String[] Script tags applicable to the gid (see scriptTags, List<String> OpenTypeScript)list of features to apply enabledFeatures)Apply glyph substitutions to the supplied gid. |
| public Set | Returns: a read-only view of the script tags for which this GSUB table has records
|
| public int | Returns: the original gid of a substitute-gidSubstitute GID sgid)For a substitute-gid (obtained from |
| pack-priv void | read(TrueTypeFont
The font that is being read. ttf, TTFDataStream The stream to read the data from. data)Overrides org. This will read the required data from the stream. |
| private LookupSubTable | |
| private CoverageTable | |
| private FeatureListTable | |
| private FeatureTable | |
| private LangSysTable | |
| private LigatureSetTable | |
| private LookupSubTable | |
| private LigatureTable | |
| private LookupListTable | |
| private LookupSubTable | |
| private LookupTable | |
| private LookupSubTable | |
| private RangeRecord | |
| private Map | |
| private ScriptTable | |
| private LookupSubTable | |
| private void | |
| private String | Returns: The best OpenType script tagChoose from one of the supplied OpenType script tags, depending on what the font supports and potentially on context. |
| featureListTable | back to summary |
|---|---|
| private FeatureListTable featureListTable | |
| gsubData | back to summary |
|---|---|
| private GsubData gsubData | |
| lastUsedSupportedScript | back to summary |
|---|---|
| private String lastUsedSupportedScript | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| lookupCache | back to summary |
|---|---|
| private final Map<Integer, Integer> lookupCache | |
| lookupListTable | back to summary |
|---|---|
| private LookupListTable lookupListTable | |
| reverseLookup | back to summary |
|---|---|
| private final Map<Integer, Integer> reverseLookup | |
| scriptList | back to summary |
|---|---|
| private Map<String, ScriptTable> scriptList | |
| TAG | back to summary |
|---|---|
| public static final String TAG | |
| WORDPATTERN | back to summary |
|---|---|
| private static final Pattern WORDPATTERN The regex represents 4 'word characters' [a-zA-Z_0-9], see
Note the ' '-character is not matched! | |
| GlyphSubstitutionTable | back to summary |
|---|---|
| pack-priv GlyphSubstitutionTable() | |
| applyFeature | back to summary |
|---|---|
| private int applyFeature(FeatureRecord featureRecord, int gid) | |
| containsFeature | back to summary |
|---|---|
| private boolean containsFeature(List<FeatureRecord> featureRecords, String featureTag) | |
| doLookup | back to summary |
|---|---|
| private int doLookup(LookupTable lookupTable, int gid) | |
| getFeatureRecords | back to summary |
|---|---|
| private List Get a list of
| |
| getGsubData | back to summary |
|---|---|
| public GsubData getGsubData() Returns a GsubData instance containing all scripts of the table.
| |
| getGsubData | back to summary |
|---|---|
| public GsubData getGsubData(String scriptTag) Builds a new Note This method performs searching on every invocation (no results are cached)
| |
| getLangSysTables | back to summary |
|---|---|
| private Collection | |
| getSubstitution | back to summary |
|---|---|
| public int getSubstitution(int gid, String[] scriptTags, List<String> enabledFeatures) Apply glyph substitutions to the supplied gid. The applicable substitutions are determined by the
| |
| getSupportedScriptTags | back to summary |
|---|---|
public Set
| |
| getUnsubstitution | back to summary |
|---|---|
| public int getUnsubstitution(int sgid) For a substitute-gid (obtained from Only gids previously substituted by this instance can be un-substituted. If you are trying to unsubstitute before you substitute, something is wrong.
| |
| read | back to summary |
|---|---|
| pack-priv void read(TrueTypeFont ttf, TTFDataStream data) throws IOException Overrides org. Doc from org. This will read the required data from the stream.
| |
| readAlternateSubstitutionSubtable | back to summary |
|---|---|
| private LookupSubTable readAlternateSubstitutionSubtable(TTFDataStream data, long offset) throws IOException | |
| readCoverageTable | back to summary |
|---|---|
| private CoverageTable readCoverageTable(TTFDataStream data, long offset) throws IOException | |
| readFeatureList | back to summary |
|---|---|
| private FeatureListTable readFeatureList(TTFDataStream data, long offset) throws IOException | |
| readFeatureTable | back to summary |
|---|---|
| private FeatureTable readFeatureTable(TTFDataStream data, long offset) throws IOException | |
| readLangSysTable | back to summary |
|---|---|
| private LangSysTable readLangSysTable(TTFDataStream data, long offset) throws IOException | |
| readLigatureSetTable | back to summary |
|---|---|
| private LigatureSetTable readLigatureSetTable(TTFDataStream data, long ligatureSetTableLocation, int coverageGlyphId) throws IOException | |
| readLigatureSubstitutionSubtable | back to summary |
|---|---|
| private LookupSubTable readLigatureSubstitutionSubtable(TTFDataStream data, long offset) throws IOException | |
| readLigatureTable | back to summary |
|---|---|
| private LigatureTable readLigatureTable(TTFDataStream data, long ligatureTableLocation, int coverageGlyphId) throws IOException | |
| readLookupList | back to summary |
|---|---|
| private LookupListTable readLookupList(TTFDataStream data, long offset) throws IOException | |
| readLookupSubtable | back to summary |
|---|---|
| private LookupSubTable readLookupSubtable(TTFDataStream data, long offset, int lookupType) throws IOException | |
| readLookupTable | back to summary |
|---|---|
| private LookupTable readLookupTable(TTFDataStream data, long offset) throws IOException | |
| readMultipleSubstitutionSubtable | back to summary |
|---|---|
| private LookupSubTable readMultipleSubstitutionSubtable(TTFDataStream data, long offset) throws IOException | |
| readRangeRecord | back to summary |
|---|---|
| private RangeRecord readRangeRecord(TTFDataStream data) throws IOException | |
| readScriptList | back to summary |
|---|---|
| private Map | |
| readScriptTable | back to summary |
|---|---|
| private ScriptTable readScriptTable(TTFDataStream data, long offset) throws IOException | |
| readSingleLookupSubTable | back to summary |
|---|---|
| private LookupSubTable readSingleLookupSubTable(TTFDataStream data, long offset) throws IOException | |
| removeFeature | back to summary |
|---|---|
| private void removeFeature(List<FeatureRecord> featureRecords, String featureTag) | |
| selectScriptTag | back to summary |
|---|---|
| private String selectScriptTag(String[] tags) Choose from one of the supplied OpenType script tags, depending on what the font supports and potentially on context.
| |