public class PjFontDescriptor extends PjDictionary
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
PjFDFlagBitNames
Deprecated.
|
_h| Constructor and Description |
|---|
PjFontDescriptor()
Creates a new font descriptor dictionary.
|
PjFontDescriptor(java.util.Hashtable h)
Creates a font descriptor dictionary as a wrapper around a Hashtable.
|
clone, cloneHt, getHashtable, hget, hgetReference, renumber, writePdfpublic PjFontDescriptor()
public PjFontDescriptor(java.util.Hashtable h)
h - the Hashtable to use for this dictionary.public void setAscent(PjNumber ascent)
public PjObject getAscent() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setCapHeight(PjNumber capheight)
public PjObject getCapHeight() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setDescent(PjNumber descent)
public PjObject getDescent() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setFlags(PjNumber flags)
public PjObject getFlags() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic static boolean flagsFixedWidth(int flags)
public static boolean flagsSerif(int flags)
public static boolean flagsSymbolic(int flags)
public static boolean flagsScript(int flags)
public static boolean flagsRomanCharSet(int flags)
public static boolean flagsItalic(int flags)
public static boolean flagsAllCap(int flags)
public static boolean flagsSmallCap(int flags)
public static boolean flagsForceBoldAtSmallSizes(int flags)
public java.lang.String getFlagBits()
throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setFontBBox(PjRectangle fontbbox)
public PjObject getFontBBox() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setFontName(PjName fontname)
public PjObject getFontName() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setItalicAngle(PjNumber italicangle)
public PjObject getItalicAngle() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setStemV(PjNumber stemv)
public PjObject getStemV() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setAvgWidth(PjNumber avgWidth)
public PjObject getAvgWidth() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setCharSet(PjString charSet)
public PjObject getCharSet() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setFontFile(PjStream fontFile)
public PjObject getFontFile() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setFontFile2(PjStream fontFile2)
public PjObject getFontFile2() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setFontFile3(PjStream fontFile3)
public PjObject getFontFile3() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setLeading(PjNumber leading)
public PjObject getLeading() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setMaxWidth(PjNumber maxWidth)
public PjObject getMaxWidth() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setMissingWidth(PjNumber missingWidth)
public PjObject getMissingWidth() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setStemH(PjNumber stemH)
public PjObject getStemH() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic void setXHeight(PjNumber xHeight)
public PjObject getXHeight() throws InvalidPdfObjectException
InvalidPdfObjectExceptionpublic static boolean isLike(PjDictionary dictionary)
dictionary - the dictionary to examine.