com.etymon.pj.object
Class PjFontDescriptor
java.lang.Object
com.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjDictionary
com.etymon.pj.object.PjFontDescriptor
- All Implemented Interfaces:
- java.lang.Cloneable
public class PjFontDescriptor
- extends PjDictionary
A representation of a PDF font descriptor (abstract base class).
Constructor Summary |
PjFontDescriptor()
Creates a new font descriptor dictionary. |
PjFontDescriptor(java.util.Hashtable h)
Creates a font descriptor dictionary as a wrapper around a Hashtable. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PjFDFlagBitNames
private static java.lang.String[] PjFDFlagBitNames
- Deprecated.
PjFontDescriptor
public PjFontDescriptor()
- Creates a new font descriptor dictionary.
PjFontDescriptor
public PjFontDescriptor(java.util.Hashtable h)
- Creates a font descriptor dictionary as a wrapper around a Hashtable.
- Parameters:
h
- the Hashtable to use for this dictionary.
setAscent
public void setAscent(PjNumber ascent)
getAscent
public PjObject getAscent()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setCapHeight
public void setCapHeight(PjNumber capheight)
getCapHeight
public PjObject getCapHeight()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setDescent
public void setDescent(PjNumber descent)
getDescent
public PjObject getDescent()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFlags
public void setFlags(PjNumber flags)
getFlags
public PjObject getFlags()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
flagsFixedWidth
public static boolean flagsFixedWidth(int flags)
flagsSerif
public static boolean flagsSerif(int flags)
flagsSymbolic
public static boolean flagsSymbolic(int flags)
flagsScript
public static boolean flagsScript(int flags)
flagsRomanCharSet
public static boolean flagsRomanCharSet(int flags)
flagsItalic
public static boolean flagsItalic(int flags)
flagsAllCap
public static boolean flagsAllCap(int flags)
flagsSmallCap
public static boolean flagsSmallCap(int flags)
flagsForceBoldAtSmallSizes
public static boolean flagsForceBoldAtSmallSizes(int flags)
getFlagBits
public java.lang.String getFlagBits()
throws InvalidPdfObjectException
- Deprecated.
- Throws:
InvalidPdfObjectException
setFontBBox
public void setFontBBox(PjRectangle fontbbox)
getFontBBox
public PjObject getFontBBox()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFontName
public void setFontName(PjName fontname)
getFontName
public PjObject getFontName()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setItalicAngle
public void setItalicAngle(PjNumber italicangle)
getItalicAngle
public PjObject getItalicAngle()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setStemV
public void setStemV(PjNumber stemv)
getStemV
public PjObject getStemV()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setAvgWidth
public void setAvgWidth(PjNumber avgWidth)
getAvgWidth
public PjObject getAvgWidth()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setCharSet
public void setCharSet(PjString charSet)
getCharSet
public PjObject getCharSet()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFontFile
public void setFontFile(PjStream fontFile)
getFontFile
public PjObject getFontFile()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFontFile2
public void setFontFile2(PjStream fontFile2)
getFontFile2
public PjObject getFontFile2()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFontFile3
public void setFontFile3(PjStream fontFile3)
getFontFile3
public PjObject getFontFile3()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setLeading
public void setLeading(PjNumber leading)
getLeading
public PjObject getLeading()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setMaxWidth
public void setMaxWidth(PjNumber maxWidth)
getMaxWidth
public PjObject getMaxWidth()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setMissingWidth
public void setMissingWidth(PjNumber missingWidth)
getMissingWidth
public PjObject getMissingWidth()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setStemH
public void setStemH(PjNumber stemH)
getStemH
public PjObject getStemH()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setXHeight
public void setXHeight(PjNumber xHeight)
getXHeight
public PjObject getXHeight()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
isLike
public static boolean isLike(PjDictionary dictionary)
- Examines a dictionary to see if it is a PDF font descriptor.
- Parameters:
dictionary
- the dictionary to examine.
- Returns:
- true if the dictionary could be interpreted as a
valid PjFontDescriptor object.