org.icepdf.core.pobjects.fonts
Class AFM

java.lang.Object
  extended by org.icepdf.core.pobjects.fonts.AFM

public class AFM
extends java.lang.Object

This class parses and stores data on the 14 PostScript AFM files.

Since:
1.0

Field Summary
static java.lang.String[] AFMnames
           
static java.util.HashMap<java.lang.String,AFM> AFMs
           
static int COURIER
           
static int COURIER_BOLD
           
static int COURIER_BOLD_OBLIQUE
           
static int COURIER_OBLIQUE
           
static int HELVETICA
           
static int HELVETICA_BOLD
           
static int HELVETICA_BOLD_OBLIQUE
           
static int HELVETICA_OBLIQUE
           
static int SYMBOL
           
static int TIMES_BOLD
           
static int TIMES_BOLD_ITALIC
           
static int TIMES_ITALIC
           
static int TIMES_ROMAN
           
static int ZAPF_DINGBATS
           
 
Method Summary
 int getAvgWidth()
           
 java.lang.String getFamilyName()
           
 int getFlags()
           
 int[] getFontBBox()
           
 java.lang.String getFontName()
           
 java.lang.String getFullName()
           
 float getItalicAngle()
           
 float getMaxWidth()
           
 float[] getWidths()
           
static AFM loadFont(java.lang.String resource)
          Creates a new AFM file based on the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COURIER

public static final int COURIER
See Also:
Constant Field Values

COURIER_BOLD

public static final int COURIER_BOLD
See Also:
Constant Field Values

COURIER_OBLIQUE

public static final int COURIER_OBLIQUE
See Also:
Constant Field Values

COURIER_BOLD_OBLIQUE

public static final int COURIER_BOLD_OBLIQUE
See Also:
Constant Field Values

HELVETICA

public static final int HELVETICA
See Also:
Constant Field Values

HELVETICA_BOLD

public static final int HELVETICA_BOLD
See Also:
Constant Field Values

HELVETICA_OBLIQUE

public static final int HELVETICA_OBLIQUE
See Also:
Constant Field Values

HELVETICA_BOLD_OBLIQUE

public static final int HELVETICA_BOLD_OBLIQUE
See Also:
Constant Field Values

TIMES_ROMAN

public static final int TIMES_ROMAN
See Also:
Constant Field Values

TIMES_BOLD

public static final int TIMES_BOLD
See Also:
Constant Field Values

TIMES_ITALIC

public static final int TIMES_ITALIC
See Also:
Constant Field Values

TIMES_BOLD_ITALIC

public static final int TIMES_BOLD_ITALIC
See Also:
Constant Field Values

ZAPF_DINGBATS

public static final int ZAPF_DINGBATS
See Also:
Constant Field Values

SYMBOL

public static final int SYMBOL
See Also:
Constant Field Values

AFMnames

public static java.lang.String[] AFMnames

AFMs

public static java.util.HashMap<java.lang.String,AFM> AFMs
Method Detail

loadFont

public static AFM loadFont(java.lang.String resource)
                    throws java.io.IOException
Creates a new AFM file based on the

Parameters:
resource - name of desired resource.
Throws:
java.io.IOException - if the specified resource could not be found or o pened.

getFontName

public java.lang.String getFontName()

getFullName

public java.lang.String getFullName()

getFamilyName

public java.lang.String getFamilyName()

getFontBBox

public int[] getFontBBox()

getItalicAngle

public float getItalicAngle()

getWidths

public float[] getWidths()

getMaxWidth

public float getMaxWidth()

getAvgWidth

public int getAvgWidth()

getFlags

public int getFlags()