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 Object

Author:
Palash Ray

Field Summary
protected static Logger LOG
           
protected  RandomAccessFileOrArray rf
           
protected  int tableLocation
           
 
Constructor Summary
OpenTypeFontTableReader(String fontFilePath, int tableLocation)
           
 
Method Summary
 Language getSupportedLanguage()
           
protected  List<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(String fontFilePath,
                               int tableLocation)
                        throws IOException
Throws:
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 IOException
Throws:
IOException

readCoverageFormat

protected final List<Integer> readCoverageFormat(int coverageLocation)
                                          throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.