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 and Description |
|---|
GlyphSubstitutionTableReader(RandomAccessFileOrArray rf,
int gsubTableLocation,
Map<Integer,Character> glyphToCharacterMap,
int[] glyphWidthsByIndex) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Glyph> |
getGlyphSubstitutionMap() |
void |
read() |
protected void |
readSubTable(int lookupType,
int subTableLocation) |
getSupportedLanguage, readCoverageFormat, startReadingTablepublic GlyphSubstitutionTableReader(RandomAccessFileOrArray rf, int gsubTableLocation, Map<Integer,Character> glyphToCharacterMap, int[] glyphWidthsByIndex) throws IOException
IOExceptionpublic void read()
throws FontReadingException
FontReadingExceptionpublic Map<String,Glyph> getGlyphSubstitutionMap() throws FontReadingException
FontReadingExceptionprotected void readSubTable(int lookupType,
int subTableLocation)
throws IOException
readSubTable in class OpenTypeFontTableReaderIOExceptionCopyright © 2016. All rights reserved.