COSObjectablepublic class PDFontDescriptorDictionary extends PDFontDescriptor implements COSObjectable
| Constructor | Description |
|---|---|
PDFontDescriptorDictionary() |
Constructor.
|
PDFontDescriptorDictionary(COSDictionary desc) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
float |
getAscent() |
This will get the ascent for the font.
|
float |
getAverageWidth() |
This will get the average width for the font.
|
float |
getCapHeight() |
This will get the CapHeight for the font.
|
java.lang.String |
getCharSet() |
This will get the character set for the font.
|
COSDictionary |
getCOSDictionary() |
This will get the dictionary for this object.
|
COSBase |
getCOSObject() |
Convert this standard java object to a COS object.
|
float |
getDescent() |
This will get the descent for the font.
|
int |
getFlags() |
This will get the font flags.
|
PDRectangle |
getFontBoundingBox() |
This will get the fonts bounding box.
|
java.lang.String |
getFontFamily() |
A string representing the preferred font family.
|
PDStream |
getFontFile() |
A stream containing a Type 1 font program.
|
PDStream |
getFontFile2() |
A stream containing a true type font program.
|
PDStream |
getFontFile3() |
A stream containing a font program that is not true type or type 1.
|
java.lang.String |
getFontName() |
Get the font name.
|
java.lang.String |
getFontStretch() |
A string representing the preferred font stretch.
|
float |
getFontWeight() |
The weight of the font.
|
float |
getItalicAngle() |
This will get the italic angle for the font.
|
float |
getLeading() |
This will get the leading for the font.
|
float |
getMaxWidth() |
This will get the max width for the font.
|
float |
getMissingWidth() |
This will get the missing width for the font.
|
float |
getStemH() |
This will get the stemH for the font.
|
float |
getStemV() |
This will get the stemV for the font.
|
float |
getXHeight() |
This will get the x height for the font.
|
void |
setAscent(float ascent) |
This will set the ascent for the font.
|
void |
setAverageWidth(float averageWidth) |
This will set the average width for the font.
|
void |
setCapHeight(float capHeight) |
This will set the cap height for the font.
|
void |
setCharacterSet(java.lang.String charSet) |
This will set the character set for the font.
|
void |
setDescent(float descent) |
This will set the descent for the font.
|
void |
setFlags(int flags) |
This will set the font flags.
|
void |
setFontBoundingBox(PDRectangle rect) |
Set the fonts bounding box.
|
void |
setFontFamily(java.lang.String fontFamily) |
This will set the font family.
|
void |
setFontFile(PDStream type1Stream) |
Set the type 1 font program.
|
void |
setFontFile2(PDStream ttfStream) |
Set the true type font program.
|
void |
setFontFile3(PDStream stream) |
Set a stream containing a font program that is not true type or type 1.
|
void |
setFontName(java.lang.String fontName) |
This will set the font name.
|
void |
setFontStretch(java.lang.String fontStretch) |
This will set the font stretch.
|
void |
setFontWeight(float fontWeight) |
Set the weight of the font.
|
void |
setItalicAngle(float angle) |
This will set the italic angle for the font.
|
void |
setLeading(float leading) |
This will set the leading for the font.
|
void |
setMaxWidth(float maxWidth) |
This will set the max width for the font.
|
void |
setMissingWidth(float missingWidth) |
This will set the missing width for the font.
|
void |
setStemH(float stemH) |
This will set the stem H for the font.
|
void |
setStemV(float stemV) |
This will set the stem V for the font.
|
void |
setXHeight(float xHeight) |
This will set the x height for the font.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAllCap, isFixedPitch, isForceBold, isItalic, isNonSymbolic, isScript, isSerif, isSmallCap, isSymbolic, setAllCap, setFixedPitch, setForceBold, setItalic, setNonSymbolic, setScript, setSerif, setSmallCap, setSymbolicpublic PDFontDescriptorDictionary()
public PDFontDescriptorDictionary(COSDictionary desc)
desc - The wrapped COS Dictionary.public COSDictionary getCOSDictionary()
public COSBase getCOSObject()
getCOSObject in interface COSObjectablepublic java.lang.String getFontName()
getFontName in class PDFontDescriptorpublic void setFontName(java.lang.String fontName)
setFontName in class PDFontDescriptorfontName - The new name for the font.public java.lang.String getFontFamily()
getFontFamily in class PDFontDescriptorpublic void setFontFamily(java.lang.String fontFamily)
setFontFamily in class PDFontDescriptorfontFamily - The font family.public float getFontWeight()
getFontWeight in class PDFontDescriptorpublic void setFontWeight(float fontWeight)
setFontWeight in class PDFontDescriptorfontWeight - The new weight of the font.public java.lang.String getFontStretch()
getFontStretch in class PDFontDescriptorpublic void setFontStretch(java.lang.String fontStretch)
setFontStretch in class PDFontDescriptorfontStretch - The new stretch for the font.public int getFlags()
getFlags in class PDFontDescriptorpublic void setFlags(int flags)
setFlags in class PDFontDescriptorflags - The new font flags.public PDRectangle getFontBoundingBox()
getFontBoundingBox in class PDFontDescriptorpublic void setFontBoundingBox(PDRectangle rect)
setFontBoundingBox in class PDFontDescriptorrect - The new bouding box.public float getItalicAngle()
getItalicAngle in class PDFontDescriptorpublic void setItalicAngle(float angle)
setItalicAngle in class PDFontDescriptorangle - The new italic angle for the font.public float getAscent()
getAscent in class PDFontDescriptorpublic void setAscent(float ascent)
setAscent in class PDFontDescriptorascent - The new ascent for the font.public float getDescent()
getDescent in class PDFontDescriptorpublic void setDescent(float descent)
setDescent in class PDFontDescriptordescent - The new descent for the font.public float getLeading()
getLeading in class PDFontDescriptorpublic void setLeading(float leading)
setLeading in class PDFontDescriptorleading - The new leading for the font.public float getCapHeight()
getCapHeight in class PDFontDescriptorpublic void setCapHeight(float capHeight)
setCapHeight in class PDFontDescriptorcapHeight - The new cap height for the font.public float getXHeight()
getXHeight in class PDFontDescriptorpublic void setXHeight(float xHeight)
setXHeight in class PDFontDescriptorxHeight - The new x height for the font.public float getStemV()
getStemV in class PDFontDescriptorpublic void setStemV(float stemV)
setStemV in class PDFontDescriptorstemV - The new stem v for the font.public float getStemH()
getStemH in class PDFontDescriptorpublic void setStemH(float stemH)
setStemH in class PDFontDescriptorstemH - The new stem h for the font.public float getAverageWidth()
getAverageWidth in class PDFontDescriptorpublic void setAverageWidth(float averageWidth)
setAverageWidth in class PDFontDescriptoraverageWidth - The new average width for the font.public float getMaxWidth()
getMaxWidth in class PDFontDescriptorpublic void setMaxWidth(float maxWidth)
setMaxWidth in class PDFontDescriptormaxWidth - The new max width for the font.public float getMissingWidth()
getMissingWidth in class PDFontDescriptorpublic void setMissingWidth(float missingWidth)
setMissingWidth in class PDFontDescriptormissingWidth - The new missing width for the font.public java.lang.String getCharSet()
getCharSet in class PDFontDescriptorpublic void setCharacterSet(java.lang.String charSet)
setCharacterSet in class PDFontDescriptorcharSet - The new character set for the font.public PDStream getFontFile()
public void setFontFile(PDStream type1Stream)
type1Stream - The type 1 stream.public PDStream getFontFile2()
public void setFontFile2(PDStream ttfStream)
ttfStream - The true type stream.public PDStream getFontFile3()
public void setFontFile3(PDStream stream)
stream - The font program stream.