|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.fonts.PFMFile
This class represents a PFM file (or parts of it) as a Java object.
Constructor Summary | |
PFMFile()
|
Method Summary | |
int |
getCapHeight()
Returns the CapHeight parameter for the font (height of uppercase H). |
short |
getCharSet()
Returns the charset used for the font. |
java.lang.String |
getCharSetName()
Returns the charset of the font as a string. |
int |
getCharWidth(short which)
Returns the width of a character |
short |
getFirstChar()
Returns the number of the character that defines the first entry in the widths list. |
int |
getFlags()
Returns the characteristics flags for the font as needed for a PDF font descriptor (See PDF specs). |
int[] |
getFontBBox()
Returns the bounding box for the font. |
boolean |
getIsProportional()
Tells whether the font has proportional character spacing. |
int |
getItalicAngle()
Returns the italic angle of the font. |
java.util.Hashtable |
getKerning()
Return the kerning table. |
short |
getLastChar()
Returns the number of the character that defines the last entry in the widths list. |
int |
getLowerCaseAscent()
Returns the LowerCaseAscent parameter for the font (height of lowercase d). |
int |
getLowerCaseDescent()
Returns the LowerCaseDescent parameter for the font (height of lowercase p). |
java.lang.String |
getPostscriptName()
Returns the Postscript name of the font. |
int |
getStemV()
Returns the width of the dominant vertical stems of the font. |
java.lang.String |
getWindowsName()
Returns the Windows name of the font. |
int |
getXHeight()
Returns the XHeight parameter for the font (height of lowercase x). |
void |
load(java.io.InputStream inStream)
Parses a PFM file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PFMFile()
Method Detail |
public void load(java.io.InputStream inStream) throws java.io.IOException
inStream
- The stream from which to read the PFM file.public java.lang.String getWindowsName()
public java.util.Hashtable getKerning()
public java.lang.String getPostscriptName()
public short getCharSet()
public java.lang.String getCharSetName()
public short getFirstChar()
public short getLastChar()
public int getCapHeight()
public int getXHeight()
public int getLowerCaseAscent()
public int getLowerCaseDescent()
public boolean getIsProportional()
public int[] getFontBBox()
public int getFlags()
public int getStemV()
public int getItalicAngle()
public int getCharWidth(short which)
which
- The number of the character for which the width is requested.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |