org.pentaho.reporting.libraries.fonts.truetype
Class TrueTypeFont

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFont

public class TrueTypeFont
extends java.lang.Object

Creation-Date: 06.11.2005, 18:27:21

Author:
Thomas Morgner

Constructor Summary
TrueTypeFont(java.io.File filename)
           
TrueTypeFont(java.io.File filename, long offset)
           
TrueTypeFont(java.io.File filename, long offset, int collectionIndex)
           
TrueTypeFont(FontDataInputSource filename)
           
TrueTypeFont(FontDataInputSource filename, long offset)
           
TrueTypeFont(FontDataInputSource filename, long offset, int collectionIndex)
           
 
Method Summary
 void dispose()
           
protected  void finalize()
           
 int getCollectionIndex()
           
 java.lang.String getFilename()
          The file that was used to load the font.
 FontDataInputSource getInputSource()
           
 long getOffset()
           
 FontTable getTable(long key)
           
protected  byte[] readFully(long offset, int length)
           
protected  FontTable readTable(org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFont.TableDirectoryEntry table)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrueTypeFont

public TrueTypeFont(FontDataInputSource filename)
             throws java.io.IOException
Throws:
java.io.IOException

TrueTypeFont

public TrueTypeFont(FontDataInputSource filename,
                    long offset)
             throws java.io.IOException
Throws:
java.io.IOException

TrueTypeFont

public TrueTypeFont(FontDataInputSource filename,
                    long offset,
                    int collectionIndex)
             throws java.io.IOException
Throws:
java.io.IOException

TrueTypeFont

public TrueTypeFont(java.io.File filename)
             throws java.io.IOException
Throws:
java.io.IOException

TrueTypeFont

public TrueTypeFont(java.io.File filename,
                    long offset)
             throws java.io.IOException
Throws:
java.io.IOException

TrueTypeFont

public TrueTypeFont(java.io.File filename,
                    long offset,
                    int collectionIndex)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getCollectionIndex

public int getCollectionIndex()

readFully

protected byte[] readFully(long offset,
                           int length)
                    throws java.io.IOException
Throws:
java.io.IOException

getOffset

public long getOffset()

getFilename

public java.lang.String getFilename()
The file that was used to load the font. This is deprecated, as only the transition version of JFreeReport is using this hack.

Returns:

getTable

public FontTable getTable(long key)
                   throws java.io.IOException
Throws:
java.io.IOException

readTable

protected FontTable readTable(org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFont.TableDirectoryEntry table)
                       throws java.io.IOException
Throws:
java.io.IOException

dispose

public void dispose()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getInputSource

public FontDataInputSource getInputSource()