public class PDFontDescriptorDictionary extends PDFontDescriptor implements COSObjectable
Constructor and Description |
---|
PDFontDescriptorDictionary()
Constructor.
|
PDFontDescriptorDictionary(COSDictionary desc)
Constructor.
|
Modifier and Type | Method and 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.
|
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.
|
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.
|
String |
getFontName()
Get the font name.
|
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(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(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(String fontName)
This will set the font name.
|
void |
setFontStretch(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.
|
isAllCap, isFixedPitch, isForceBold, isItalic, isNonSymbolic, isScript, isSerif, isSmallCap, isSymbolic, setAllCap, setFixedPitch, setForceBold, setItalic, setNonSymbolic, setScript, setSerif, setSmallCap, setSymbolic
public PDFontDescriptorDictionary()
public PDFontDescriptorDictionary(COSDictionary desc)
desc
- The wrapped COS Dictionary.public COSDictionary getCOSDictionary()
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public String getFontName()
getFontName
in class PDFontDescriptor
public void setFontName(String fontName)
setFontName
in class PDFontDescriptor
fontName
- The new name for the font.public String getFontFamily()
getFontFamily
in class PDFontDescriptor
public void setFontFamily(String fontFamily)
setFontFamily
in class PDFontDescriptor
fontFamily
- The font family.public float getFontWeight()
getFontWeight
in class PDFontDescriptor
public void setFontWeight(float fontWeight)
setFontWeight
in class PDFontDescriptor
fontWeight
- The new weight of the font.public String getFontStretch()
getFontStretch
in class PDFontDescriptor
public void setFontStretch(String fontStretch)
setFontStretch
in class PDFontDescriptor
fontStretch
- The new stretch for the font.public int getFlags()
getFlags
in class PDFontDescriptor
public void setFlags(int flags)
setFlags
in class PDFontDescriptor
flags
- The new font flags.public PDRectangle getFontBoundingBox()
getFontBoundingBox
in class PDFontDescriptor
public void setFontBoundingBox(PDRectangle rect)
setFontBoundingBox
in class PDFontDescriptor
rect
- The new bouding box.public float getItalicAngle()
getItalicAngle
in class PDFontDescriptor
public void setItalicAngle(float angle)
setItalicAngle
in class PDFontDescriptor
angle
- The new italic angle for the font.public float getAscent()
getAscent
in class PDFontDescriptor
public void setAscent(float ascent)
setAscent
in class PDFontDescriptor
ascent
- The new ascent for the font.public float getDescent()
getDescent
in class PDFontDescriptor
public void setDescent(float descent)
setDescent
in class PDFontDescriptor
descent
- The new descent for the font.public float getLeading()
getLeading
in class PDFontDescriptor
public void setLeading(float leading)
setLeading
in class PDFontDescriptor
leading
- The new leading for the font.public float getCapHeight()
getCapHeight
in class PDFontDescriptor
public void setCapHeight(float capHeight)
setCapHeight
in class PDFontDescriptor
capHeight
- The new cap height for the font.public float getXHeight()
getXHeight
in class PDFontDescriptor
public void setXHeight(float xHeight)
setXHeight
in class PDFontDescriptor
xHeight
- The new x height for the font.public float getStemV()
getStemV
in class PDFontDescriptor
public void setStemV(float stemV)
setStemV
in class PDFontDescriptor
stemV
- The new stem v for the font.public float getStemH()
getStemH
in class PDFontDescriptor
public void setStemH(float stemH)
setStemH
in class PDFontDescriptor
stemH
- The new stem h for the font.public float getAverageWidth()
getAverageWidth
in class PDFontDescriptor
public void setAverageWidth(float averageWidth)
setAverageWidth
in class PDFontDescriptor
averageWidth
- The new average width for the font.public float getMaxWidth()
getMaxWidth
in class PDFontDescriptor
public void setMaxWidth(float maxWidth)
setMaxWidth
in class PDFontDescriptor
maxWidth
- The new max width for the font.public float getMissingWidth()
getMissingWidth
in class PDFontDescriptor
public void setMissingWidth(float missingWidth)
setMissingWidth
in class PDFontDescriptor
missingWidth
- The new missing width for the font.public String getCharSet()
getCharSet
in class PDFontDescriptor
public void setCharacterSet(String charSet)
setCharacterSet
in class PDFontDescriptor
charSet
- 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.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.