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