Class TrueTypeFont
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFont
-
public class TrueTypeFont extends Object
Creation-Date: 06.11.2005, 18:27:21- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description TrueTypeFont(File filename)
TrueTypeFont(File filename, long offset)
TrueTypeFont(File filename, long offset, int collectionIndex)
TrueTypeFont(FontDataInputSource filename)
TrueTypeFont(FontDataInputSource filename, long offset)
TrueTypeFont(FontDataInputSource filename, long offset, int collectionIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected void
finalize()
int
getCollectionIndex()
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)
-
-
-
Constructor Detail
-
TrueTypeFont
public TrueTypeFont(FontDataInputSource filename) throws IOException
- Throws:
IOException
-
TrueTypeFont
public TrueTypeFont(FontDataInputSource filename, long offset) throws IOException
- Throws:
IOException
-
TrueTypeFont
public TrueTypeFont(FontDataInputSource filename, long offset, int collectionIndex) throws IOException
- Throws:
IOException
-
TrueTypeFont
public TrueTypeFont(File filename) throws IOException
- Throws:
IOException
-
TrueTypeFont
public TrueTypeFont(File filename, long offset) throws IOException
- Throws:
IOException
-
TrueTypeFont
public TrueTypeFont(File filename, long offset, int collectionIndex) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getCollectionIndex
public int getCollectionIndex()
-
readFully
protected byte[] readFully(long offset, int length) throws IOException
- Throws:
IOException
-
getOffset
public long getOffset()
-
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:
-
getTable
public FontTable getTable(long key) throws IOException
- Throws:
IOException
-
readTable
protected FontTable readTable(org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFont.TableDirectoryEntry table) throws IOException
- Throws:
IOException
-
dispose
public void dispose()
-
finalize
protected void finalize() throws Throwable
-
getInputSource
public FontDataInputSource getInputSource()
-
-