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 |
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
setCapHeight
public void setCapHeight(PjNumber capheight)
getCapHeight
public PjObject getCapHeight()
throws InvalidPdfObjectException
setDescent
public void setDescent(PjNumber descent)
getDescent
public PjObject getDescent()
throws InvalidPdfObjectException
setFlags
public void setFlags(PjNumber flags)
getFlags
public PjObject getFlags()
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.
setFontBBox
public void setFontBBox(PjRectangle fontbbox)
getFontBBox
public PjObject getFontBBox()
throws InvalidPdfObjectException
setFontName
public void setFontName(PjName fontname)
getFontName
public PjObject getFontName()
throws InvalidPdfObjectException
setItalicAngle
public void setItalicAngle(PjNumber italicangle)
getItalicAngle
public PjObject getItalicAngle()
throws InvalidPdfObjectException
setStemV
public void setStemV(PjNumber stemv)
getStemV
public PjObject getStemV()
throws InvalidPdfObjectException
setAvgWidth
public void setAvgWidth(PjNumber avgWidth)
getAvgWidth
public PjObject getAvgWidth()
throws InvalidPdfObjectException
setCharSet
public void setCharSet(PjString charSet)
getCharSet
public PjObject getCharSet()
throws InvalidPdfObjectException
setFontFile
public void setFontFile(PjStream fontFile)
getFontFile
public PjObject getFontFile()
throws InvalidPdfObjectException
setFontFile2
public void setFontFile2(PjStream fontFile2)
getFontFile2
public PjObject getFontFile2()
throws InvalidPdfObjectException
setFontFile3
public void setFontFile3(PjStream fontFile3)
getFontFile3
public PjObject getFontFile3()
throws InvalidPdfObjectException
setLeading
public void setLeading(PjNumber leading)
getLeading
public PjObject getLeading()
throws InvalidPdfObjectException
setMaxWidth
public void setMaxWidth(PjNumber maxWidth)
getMaxWidth
public PjObject getMaxWidth()
throws InvalidPdfObjectException
setMissingWidth
public void setMissingWidth(PjNumber missingWidth)
getMissingWidth
public PjObject getMissingWidth()
throws InvalidPdfObjectException
setStemH
public void setStemH(PjNumber stemH)
getStemH
public PjObject getStemH()
throws InvalidPdfObjectException
setXHeight
public void setXHeight(PjNumber xHeight)
getXHeight
public PjObject getXHeight()
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.