public class GlyphSubstitutionTableReader extends OpenTypeFontTableReader
Parses an OpenTypeFont file and reads the Glyph Substitution Table. This table governs how two or more Glyphs should be merged to a single Glyph. This is especially useful for Asian languages like Bangla, Hindi, etc.
This has been written according to the OPenTypeFont specifications. This may be found here.
LOG, rf, tableLocation| Constructor | Description |
|---|---|
GlyphSubstitutionTableReader(RandomAccessFileOrArray rf,
int gsubTableLocation,
java.util.Map<java.lang.Integer,java.lang.Character> glyphToCharacterMap,
int[] glyphWidthsByIndex) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,Glyph> |
getGlyphSubstitutionMap() |
|
void |
read() |
|
protected void |
readSubTable(int lookupType,
int subTableLocation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedLanguage, readCoverageFormat, startReadingTablepublic GlyphSubstitutionTableReader(RandomAccessFileOrArray rf, int gsubTableLocation, java.util.Map<java.lang.Integer,java.lang.Character> glyphToCharacterMap, int[] glyphWidthsByIndex) throws java.io.IOException
java.io.IOExceptionpublic void read()
throws FontReadingException
FontReadingExceptionpublic java.util.Map<java.lang.String,Glyph> getGlyphSubstitutionMap() throws FontReadingException
FontReadingExceptionprotected void readSubTable(int lookupType,
int subTableLocation)
throws java.io.IOException
readSubTable in class OpenTypeFontTableReaderjava.io.IOExceptionCopyright © 1998–2018. All rights reserved.