org.pentaho.reporting.libraries.fonts.truetype
public class TrueTypeFont extends java.lang.Object
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
public TrueTypeFont(FontDataInputSource filename) throws java.io.IOException
java.io.IOException
public TrueTypeFont(FontDataInputSource filename, long offset) throws java.io.IOException
java.io.IOException
public TrueTypeFont(FontDataInputSource filename, long offset, int collectionIndex) throws java.io.IOException
java.io.IOException
public TrueTypeFont(java.io.File filename) throws java.io.IOException
java.io.IOException
public TrueTypeFont(java.io.File filename, long offset) throws java.io.IOException
java.io.IOException
public TrueTypeFont(java.io.File filename, long offset, int collectionIndex) throws java.io.IOException
java.io.IOException
public int getCollectionIndex()
protected byte[] readFully(long offset, int length) throws java.io.IOException
java.io.IOException
public long getOffset()
public java.lang.String getFilename()
public FontTable getTable(long key) throws java.io.IOException
java.io.IOException
protected FontTable readTable(org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFont.TableDirectoryEntry table) throws java.io.IOException
java.io.IOException
public void dispose()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public FontDataInputSource getInputSource()