public class PFMFile extends Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log
logging instance
|
Constructor and Description |
---|
PFMFile() |
Modifier and Type | Method and Description |
---|---|
int |
getCapHeight()
Returns the CapHeight parameter for the font (height of uppercase H).
|
short |
getCharSet()
Returns the charset used for the font.
|
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.
|
Map |
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).
|
String |
getPostscriptName()
Returns the Postscript name of the font.
|
int |
getStemV()
Returns the width of the dominant vertical stems of the font.
|
String |
getWindowsName()
Returns the Windows name of the font.
|
int |
getXHeight()
Returns the XHeight parameter for the font (height of lowercase x).
|
boolean |
isNonSymbolic()
Indicates whether the font is non-symbolic (Font uses the Adobe standard Latin character
set or a subset of it).
|
void |
load(InputStream inStream)
Parses a PFM file
|
public void load(InputStream inStream) throws IOException
inStream
- The stream from which to read the PFM file.IOException
- In case of an I/O problempublic String getWindowsName()
public Map getKerning()
public String getPostscriptName()
public short getCharSet()
public 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 boolean isNonSymbolic()
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.Copyright © 2007-2019. All Rights Reserved.