org.pentaho.reporting.libraries.fonts.truetype

Class TrueTypeFont

public class TrueTypeFont extends Object

Creation-Date: 06.11.2005, 18:27:21

Author: Thomas Morgner

Constructor Summary
TrueTypeFont(FontDataInputSource filename)
TrueTypeFont(FontDataInputSource filename, long offset)
TrueTypeFont(FontDataInputSource filename, long offset, int collectionIndex)
TrueTypeFont(File filename)
TrueTypeFont(File filename, long offset)
TrueTypeFont(File filename, long offset, int collectionIndex)
Method Summary
voiddispose()
protected voidfinalize()
intgetCollectionIndex()
StringgetFilename()
The file that was used to load the font.
FontDataInputSourcegetInputSource()
longgetOffset()
FontTablegetTable(long key)
protected byte[]readFully(long offset, int length)
protected FontTablereadTable(TrueTypeFont.TableDirectoryEntry table)

Constructor Detail

TrueTypeFont

public TrueTypeFont(FontDataInputSource filename)

TrueTypeFont

public TrueTypeFont(FontDataInputSource filename, long offset)

TrueTypeFont

public TrueTypeFont(FontDataInputSource filename, long offset, int collectionIndex)

TrueTypeFont

public TrueTypeFont(File filename)

TrueTypeFont

public TrueTypeFont(File filename, long offset)

TrueTypeFont

public TrueTypeFont(File filename, long offset, int collectionIndex)

Method Detail

dispose

public void dispose()

finalize

protected void finalize()

getCollectionIndex

public int getCollectionIndex()

getFilename

public 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:

getInputSource

public FontDataInputSource getInputSource()

getOffset

public long getOffset()

getTable

public FontTable getTable(long key)

readFully

protected byte[] readFully(long offset, int length)

readTable

protected FontTable readTable(TrueTypeFont.TableDirectoryEntry table)