public class PDFFontDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALLCAP
Font contains no lowercase letters.
|
static int |
FIXED_PITCH
All glyphs have the same width.
|
static int |
FORCEBOLD
Determines whether bold glyphs shall be painted with
extra pixels even at very small text sizes.
|
static int |
ITALIC
Glyphs have dominant vertical strokes that are slanted.
|
static int |
NONSYMBOLIC
Font uses the Adobe standard Latic character set.
|
static int |
SCRIPT
Glyphs resemble cursive handwriting.
|
static int |
SERIF
Glyphs have serifs.
|
static int |
SMALLCAP
Font contains both uppercase and lowercase letters..
|
static int |
SYMBOLIC
Font contains glyphs outside the Adobe standard Latin.
|
Constructor and Description |
---|
PDFFontDescriptor(PDFObject obj)
Creates a new instance of PDFFontDescriptor
|
PDFFontDescriptor(java.lang.String basefont)
Creates a new instance of PDFFontDescriptor
|
Modifier and Type | Method and Description |
---|---|
int |
getAscent()
Getter for property ascent.
|
int |
getAvgWidth()
Getter for property avgWidth.
|
int |
getCapHeight()
Getter for property capHeight.
|
PDFObject |
getCharSet()
Getter for property charSet.
|
int |
getDescent()
Getter for property descent.
|
int |
getFlags()
Getter for property flags.
|
java.awt.geom.Rectangle2D |
getFontBBox()
Getter for property fontBBox.
|
java.lang.String |
getFontFamily()
Getter for property fontFamily.
|
PDFObject |
getFontFile()
Getter for property fontFile.
|
PDFObject |
getFontFile2()
Getter for property fontFile2.
|
PDFObject |
getFontFile3()
Getter for property fontFile3.
|
java.lang.String |
getFontName()
Getter for property fontName.
|
java.lang.String |
getFontStretch()
Getter for property fontStretch.
|
int |
getFontWeight()
Getter for property fontWeight.
|
int |
getItalicAngle()
Getter for property italicAngle.
|
int |
getLeading()
Getter for property leading.
|
int |
getMaxWidth()
Getter for property maxWidth.
|
int |
getMissingWidth()
Getter for property misingWidth.
|
int |
getStemH()
Getter for property stemH.
|
int |
getStemV()
Getter for property stemV.
|
int |
getXHeight()
Getter for property xHeight.
|
void |
setAscent(int ascent)
Setter for property ascent.
|
void |
setAvgWidth(int avgWidth)
Setter for property avgWidth.
|
void |
setCapHeight(int capHeight)
Setter for property capHeight.
|
void |
setCharSet(PDFObject charSet)
Setter for property charSet.
|
void |
setDescent(int descent)
Setter for property descent.
|
void |
setFlags(int flags)
Setter for property flags.
|
void |
setFontBBox(java.awt.geom.Rectangle2D fontBBox)
Setter for property fontBBox.
|
void |
setFontFamily(java.lang.String fontFamily)
Setter for property fontFamily.
|
void |
setFontFile(PDFObject fontFile)
Setter for property fontFile.
|
void |
setFontFile2(PDFObject fontFile2)
Setter for property fontFile2.
|
void |
setFontFile3(PDFObject fontFile3)
Setter for property fontFile3.
|
void |
setFontName(java.lang.String fontName)
Setter for property fontName.
|
void |
setFontStretch(java.lang.String fontStretch)
Setter for property fontStretch.
|
void |
setFontWeight(int fontWeight)
Setter for property fontWeight.
|
void |
setItalicAngle(int italicAngle)
Setter for property italicAngle.
|
void |
setLeading(int leading)
Setter for property leading.
|
void |
setMaxWidth(int maxWidth)
Setter for property maxWidth.
|
void |
setMissingWidth(int missingWidth)
Setter for property misingWidth.
|
void |
setStemH(int stemH)
Setter for property stemH.
|
void |
setStemV(int stemV)
Setter for property stemV.
|
void |
setXHeight(int xHeight)
Setter for property xHeight.
|
public static final int FIXED_PITCH
public static final int SERIF
public static final int SYMBOLIC
public static final int SCRIPT
public static final int NONSYMBOLIC
public static final int ITALIC
public static final int ALLCAP
public static final int SMALLCAP
public static final int FORCEBOLD
public PDFFontDescriptor(java.lang.String basefont)
public PDFFontDescriptor(PDFObject obj) throws java.io.IOException
java.io.IOException
public int getAscent()
public void setAscent(int ascent)
ascent
- New value of property ascent.public int getCapHeight()
public void setCapHeight(int capHeight)
capHeight
- New value of property capHeight.public int getDescent()
public void setDescent(int descent)
descent
- New value of property descent.public int getFlags()
public void setFlags(int flags)
flags
- New value of property flags.public java.lang.String getFontFamily()
public void setFontFamily(java.lang.String fontFamily)
fontFamily
- New value of property fontFamily.public java.lang.String getFontName()
public void setFontName(java.lang.String fontName)
fontName
- New value of property fontName.public java.lang.String getFontStretch()
public void setFontStretch(java.lang.String fontStretch)
fontStretch
- New value of property fontStretch.public int getFontWeight()
public void setFontWeight(int fontWeight)
fontWeight
- New value of property fontWeight.public int getItalicAngle()
public void setItalicAngle(int italicAngle)
italicAngle
- New value of property italicAngle.public int getStemV()
public void setStemV(int stemV)
stemV
- New value of property stemV.public int getAvgWidth()
public void setAvgWidth(int avgWidth)
avgWidth
- New value of property avgWidth.public PDFObject getFontFile()
public void setFontFile(PDFObject fontFile)
fontFile
- New value of property fontFile.public PDFObject getFontFile2()
public void setFontFile2(PDFObject fontFile2)
fontFile2
- New value of property fontFile2.public PDFObject getFontFile3()
public void setFontFile3(PDFObject fontFile3)
fontFile3
- New value of property fontFile3.public int getLeading()
public void setLeading(int leading)
leading
- New value of property leading.public int getMaxWidth()
public void setMaxWidth(int maxWidth)
maxWidth
- New value of property maxWidth.public int getMissingWidth()
public void setMissingWidth(int missingWidth)
missingWidth
- New value of property misingWidth.public int getStemH()
public void setStemH(int stemH)
stemH
- New value of property stemH.public int getXHeight()
public void setXHeight(int xHeight)
xHeight
- New value of property xHeight.public PDFObject getCharSet()
public void setCharSet(PDFObject charSet)
charSet
- New value of property charSet.public java.awt.geom.Rectangle2D getFontBBox()
public void setFontBBox(java.awt.geom.Rectangle2D fontBBox)
fontBBox
- New value of property fontBBox.