org.icepdf.core.pobjects.fonts
Class AFM
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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()