Class GlyphSubstitutionTable.SingleSubtableFormat2
- java.lang.Object
-
- org.apache.fop.complexscripts.fonts.GlyphSubtable
-
- org.apache.fop.complexscripts.fonts.GlyphSubstitutionSubtable
-
- org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.SingleSubtable
-
- org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.SingleSubtableFormat2
-
- All Implemented Interfaces:
java.lang.Comparable
,GlyphSubstitution
- Enclosing class:
- GlyphSubstitutionTable
private static class GlyphSubstitutionTable.SingleSubtableFormat2 extends GlyphSubstitutionTable.SingleSubtable
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
glyphs
-
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
Constructors Constructor Description SingleSubtableFormat2(java.lang.String id, int sequence, int flags, int format, GlyphCoverageTable coverage, java.util.List entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
getEntries()
int
getGlyphForCoverageIndex(int ci, int gi)
Obtain glyph for coverage index.private void
populate(java.util.List entries)
-
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.SingleSubtable
create, getType, isCompatible, substitute
-
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubstitutionSubtable
getTableType, getTypeName, substitute, substitute, usesReverseScan
-
Methods inherited from class org.apache.fop.complexscripts.fonts.GlyphSubtable
compareTo, equals, getClasses, getCoverage, getCoverageIndex, getCoverageSize, getFlags, getFlags, getFormat, getGDEF, getLookupId, getSequence, getTable, hashCode, resolveLookupReferences, setTable, usesReverseScan
-
-
-
-
Constructor Detail
-
SingleSubtableFormat2
SingleSubtableFormat2(java.lang.String id, int sequence, int flags, int format, GlyphCoverageTable coverage, java.util.List entries)
-
-
Method Detail
-
getEntries
public java.util.List getEntries()
- Specified by:
getEntries
in classGlyphSubtable
- Returns:
- this subtable's lookup entries
-
getGlyphForCoverageIndex
public int getGlyphForCoverageIndex(int ci, int gi) throws java.lang.IllegalArgumentException
Obtain glyph for coverage index.- Specified by:
getGlyphForCoverageIndex
in classGlyphSubstitutionTable.SingleSubtable
- Parameters:
ci
- coverage indexgi
- original glyph index- Returns:
- substituted glyph value
- Throws:
java.lang.IllegalArgumentException
- if coverage index is not valid
-
populate
private void populate(java.util.List entries)
-
-