com.itextpdf.text.pdf.fonts.otf
Class OpenTypeFontTableReader

java.lang.Object
  extended by com.itextpdf.text.pdf.fonts.otf.OpenTypeFontTableReader
Direct Known Subclasses:
GlyphPositioningTableReader, GlyphSubstitutionTableReader

public abstract class OpenTypeFontTableReader
extends java.lang.Object

Author:
Palash Ray

Field Summary
protected static Logger LOG
           
protected  RandomAccessFileOrArray rf
           
protected  int tableLocation
           
 
Constructor Summary
OpenTypeFontTableReader(java.lang.String fontFilePath, int tableLocation)
           
 
Method Summary
 Language getSupportedLanguage()
           
protected  java.util.List<java.lang.Integer> readCoverageFormat(int coverageLocation)
           
protected abstract  void readSubTable(int lookupType, int subTableLocation)
           
protected  void startReadingTable()
          This is the starting point of the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG

rf

protected final RandomAccessFileOrArray rf

tableLocation

protected final int tableLocation
Constructor Detail

OpenTypeFontTableReader

public OpenTypeFontTableReader(java.lang.String fontFilePath,
                               int tableLocation)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getSupportedLanguage

public Language getSupportedLanguage()
                              throws FontReadingException
Throws:
FontReadingException

startReadingTable

protected final void startReadingTable()
                                throws FontReadingException
This is the starting point of the class. A sub-class must call this method to start getting call backs to the readSubTable(int, int) method.

Throws:
FontReadingException

readSubTable

protected abstract void readSubTable(int lookupType,
                                     int subTableLocation)
                              throws java.io.IOException
Throws:
java.io.IOException

readCoverageFormat

protected final java.util.List<java.lang.Integer> readCoverageFormat(int coverageLocation)
                                                              throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2013. All Rights Reserved.