|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.complexscripts.fonts.GlyphSubtable
org.apache.fop.complexscripts.fonts.GlyphSubstitutionSubtable
public abstract class GlyphSubstitutionSubtable
The GlyphSubstitutionSubtable
implements an abstract base of a glyph substitution subtable,
providing a default implementation of the GlyphSubstitution
interface.
This work was originally authored by Glenn Adams (gadams@apache.org).
Field Summary |
---|
Fields inherited from class org.apache.fop.complexscripts.fonts.GlyphSubtable |
---|
LF_IGNORE_BASE, LF_IGNORE_LIGATURE, LF_IGNORE_MARK, LF_INTERNAL_USE_REVERSE_SCAN, LF_MARK_ATTACHMENT_TYPE, LF_RESERVED, LF_RIGHT_TO_LEFT, LF_USE_MARK_FILTERING_SET |
Constructor Summary | |
---|---|
protected |
GlyphSubstitutionSubtable(java.lang.String id,
int sequence,
int flags,
int format,
GlyphCoverageTable coverage)
Instantiate a GlyphSubstitutionSubtable . |
Method Summary | |
---|---|
int |
getTableType()
|
java.lang.String |
getTypeName()
|
boolean |
isCompatible(GlyphSubtable subtable)
Determine if a glyph subtable is compatible with this glyph subtable. |
static GlyphSequence |
substitute(GlyphSequence gs,
java.lang.String script,
java.lang.String language,
java.lang.String feature,
GlyphSubstitutionSubtable[] sta,
ScriptContextTester sct)
Apply substitutions. |
boolean |
substitute(GlyphSubstitutionState ss)
Perform glyph substitution at the current index, mutating the substitution state object as required. |
static GlyphSequence |
substitute(GlyphSubstitutionState ss,
GlyphSubstitutionSubtable[] sta,
int sequenceIndex)
Apply substitutions using specified state and subtable array. |
boolean |
usesReverseScan()
|
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubtable |
---|
compareTo, equals, getClasses, getCoverage, getCoverageIndex, getCoverageSize, getEntries, getFlags, getFlags, getFormat, getGDEF, getLookupId, getSequence, getTable, getType, hashCode, resolveLookupReferences, setTable, usesReverseScan |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GlyphSubstitutionSubtable(java.lang.String id, int sequence, int flags, int format, GlyphCoverageTable coverage)
GlyphSubstitutionSubtable
.
id
- subtable identifiersequence
- subtable sequenceflags
- subtable flagsformat
- subtable formatcoverage
- subtable coverage tableMethod Detail |
---|
public int getTableType()
getTableType
in class GlyphSubtable
public java.lang.String getTypeName()
getTypeName
in class GlyphSubtable
public boolean isCompatible(GlyphSubtable subtable)
isCompatible
in class GlyphSubtable
subtable
- a glyph subtable to determine compatibility
public boolean usesReverseScan()
usesReverseScan
in class GlyphSubtable
public boolean substitute(GlyphSubstitutionState ss)
substitute
in interface GlyphSubstitution
ss
- glyph substitution state object
public static final GlyphSequence substitute(GlyphSubstitutionState ss, GlyphSubstitutionSubtable[] sta, int sequenceIndex)
sequenceIndex
is non-negative, then apply subtables only when current position
matches sequenceIndex
in relation to the starting position. Furthermore, upon
successful application at sequenceIndex
, then apply default action for all remaining
glyphs in input sequence.
ss
- substitution statesta
- array of subtables to applysequenceIndex
- if non negative, then apply subtables only at specified sequence index
public static final GlyphSequence substitute(GlyphSequence gs, java.lang.String script, java.lang.String language, java.lang.String feature, GlyphSubstitutionSubtable[] sta, ScriptContextTester sct)
gs
- input glyph sequencescript
- taglanguage
- tagfeature
- tagsta
- subtable arraysct
- script context tester
|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |