org.pentaho.reporting.libraries.fonts.pfm
Class PfmFont

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.pfm.PfmFont

public class PfmFont
extends java.lang.Object

Creation-Date: 21.07.2007, 15:27:07

Author:
Thomas Morgner

Constructor Summary
PfmFont(java.io.File font, boolean embeddable)
           
PfmFont(FontDataInputSource input, boolean embeddable)
           
 
Method Summary
 void dispose()
           
 java.lang.String getFamilyName()
           
 java.lang.String getFilename()
           
 java.lang.String getFontName()
           
 PfmFontHeader getHeader()
           
 FontDataInputSource getInput()
           
 boolean isEmbeddable()
           
 boolean isItextCompatible()
          IText's PFM reader is buggy.
protected  byte[] readFully(long offset, int length)
           
protected  byte[] readZString(long offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PfmFont

public PfmFont(java.io.File font,
               boolean embeddable)
        throws java.io.IOException
Throws:
java.io.IOException

PfmFont

public PfmFont(FontDataInputSource input,
               boolean embeddable)
        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

isItextCompatible

public boolean isItextCompatible()
IText's PFM reader is buggy. We have to check for the bug or we will run into troubles.

Returns:

getFontName

public java.lang.String getFontName()

getFamilyName

public java.lang.String getFamilyName()

getHeader

public PfmFontHeader getHeader()

getFilename

public java.lang.String getFilename()

getInput

public FontDataInputSource getInput()

dispose

public void dispose()

readFully

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

readZString

protected byte[] readZString(long offset)
                      throws java.io.IOException
Throws:
java.io.IOException

isEmbeddable

public boolean isEmbeddable()