| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.pdfbox.pdmodel.font.PDFontDescriptororg.pdfbox.pdmodel.font.PDFontDescriptorAFMpublic class PDFontDescriptorAFMextends PDFontDescriptorConstructor Summary | |
| |
Method Summary | |
float |
|
float |
|
float |
|
String |
|
float |
|
int |
|
PDRectangle |
|
String |
|
String |
|
String |
|
float |
|
float |
|
float |
|
float |
|
float |
|
float |
|
float |
|
float |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.pdfbox.pdmodel.font.PDFontDescriptor | |
getAscent, getAverageWidth, getCapHeight, getCharSet, getDescent, getFlags, getFontBoundingBox, getFontFamily, getFontName, getFontStretch, getFontWeight, getItalicAngle, getLeading, getMaxWidth, getStemH, getStemV, getXHeight, isAllCap, isFixedPitch, isForceBold, isItalic, isNonSymbolic, isScript, isSerif, isSmallCap, isSymbolic, setAllCap, setAscent, setAverageWidth, setCapHeight, setCharacterSet, setDescent, setFixedPitch, setFlags, setFontBoundingBox, setFontFamily, setFontName, setFontStretch, setFontWeight, setForceBold, setItalic, setItalicAngle, setLeading, setMaxWidth, setNonSymbolic, setScript, setSerif, setSmallCap, setStemH, setStemV, setSymbolic, setXHeight | |
public PDFontDescriptorAFM(FontMetric afmFile)
Constructor.
- Parameters:
afmFile- The AFM file.
public float getAscent()
This will get the ascent for the font.
- Overrides:
- getAscent in interface PDFontDescriptor
- Returns:
- The ascent.
public float getAverageWidth()
throws IOExceptionThis will get the average width for the font.
- Overrides:
- getAverageWidth in interface PDFontDescriptor
- Returns:
- The average width value.
public float getCapHeight()
This will get the CapHeight for the font.
- Overrides:
- getCapHeight in interface PDFontDescriptor
- Returns:
- The cap height.
public String getCharSet()
This will get the character set for the font.
- Overrides:
- getCharSet in interface PDFontDescriptor
- Returns:
- The character set value.
public float getDescent()
This will get the descent for the font.
- Overrides:
- getDescent in interface PDFontDescriptor
- Returns:
- The descent.
public int getFlags()
This will get the font flags.
- Overrides:
- getFlags in interface PDFontDescriptor
- Returns:
- The font flags.
public PDRectangle getFontBoundingBox()
This will get the fonts bouding box.
- Overrides:
- getFontBoundingBox in interface PDFontDescriptor
- Returns:
- The fonts bouding box.
public String getFontFamily()
A string representing the preferred font family.
- Overrides:
- getFontFamily in interface PDFontDescriptor
- Returns:
- The font family.
public String getFontName()
Get the font name.
- Overrides:
- getFontName in interface PDFontDescriptor
- Returns:
- The name of the font.
public String getFontStretch()
A string representing the preferred font stretch.
- Overrides:
- getFontStretch in interface PDFontDescriptor
- Returns:
- The font stretch.
public float getFontWeight()
The weight of the font. According to the PDF spec "possible values are 100, 200, 300, 400, 500, 600, 700, 800 or 900" Where a higher number is more weight and appears to be more bold.
- Overrides:
- getFontWeight in interface PDFontDescriptor
- Returns:
- The font weight.
public float getItalicAngle()
This will get the italic angle for the font.
- Overrides:
- getItalicAngle in interface PDFontDescriptor
- Returns:
- The italic angle.
public float getLeading()
This will get the leading for the font.
- Overrides:
- getLeading in interface PDFontDescriptor
- Returns:
- The leading.
public float getMaxWidth()
This will get the max width for the font.
- Overrides:
- getMaxWidth in interface PDFontDescriptor
- Returns:
- The max width value.
public float getMissingWidth()
This will get the missing width for the font.
- Returns:
- The missing width value.
public float getStemH()
This will get the stemH for the font.
- Overrides:
- getStemH in interface PDFontDescriptor
- Returns:
- The stem h value.
public float getStemV()
This will get the stemV for the font.
- Overrides:
- getStemV in interface PDFontDescriptor
- Returns:
- The stem v value.
public float getXHeight()
This will get the x height for the font.
- Overrides:
- getXHeight in interface PDFontDescriptor
- Returns:
- The x height.
public void setAscent(float ascent)
This will set the ascent for the font.
- Overrides:
- setAscent in interface PDFontDescriptor
- Parameters:
ascent- The new ascent for the font.
public void setAverageWidth(float averageWidth)
This will set the average width for the font.
- Overrides:
- setAverageWidth in interface PDFontDescriptor
- Parameters:
averageWidth- The new average width for the font.
public void setCapHeight(float capHeight)
This will set the cap height for the font.
- Overrides:
- setCapHeight in interface PDFontDescriptor
- Parameters:
capHeight- The new cap height for the font.
public void setCharacterSet(String charSet)
This will set the character set for the font.
- Overrides:
- setCharacterSet in interface PDFontDescriptor
- Parameters:
charSet- The new character set for the font.
public void setDescent(float descent)
This will set the descent for the font.
- Overrides:
- setDescent in interface PDFontDescriptor
- Parameters:
descent- The new descent for the font.
public void setFlags(int flags)
This will set the font flags.
- Overrides:
- setFlags in interface PDFontDescriptor
- Parameters:
flags- The new font flags.
public void setFontBoundingBox(PDRectangle rect)
Set the fonts bounding box.
- Overrides:
- setFontBoundingBox in interface PDFontDescriptor
- Parameters:
rect- The new bouding box.
public void setFontFamily(String fontFamily)
This will set the font family.
- Overrides:
- setFontFamily in interface PDFontDescriptor
- Parameters:
fontFamily- The font family.
public void setFontName(String fontName)
This will set the font name.
- Overrides:
- setFontName in interface PDFontDescriptor
- Parameters:
fontName- The new name for the font.
public void setFontStretch(String fontStretch)
This will set the font stretch.
- Overrides:
- setFontStretch in interface PDFontDescriptor
- Parameters:
fontStretch- The font stretch
public void setFontWeight(float fontWeight)
Set the weight of the font.
- Overrides:
- setFontWeight in interface PDFontDescriptor
- Parameters:
fontWeight- The new weight of the font.
public void setItalicAngle(float angle)
This will set the italic angle for the font.
- Overrides:
- setItalicAngle in interface PDFontDescriptor
- Parameters:
angle- The new italic angle for the font.
public void setLeading(float leading)
This will set the leading for the font.
- Overrides:
- setLeading in interface PDFontDescriptor
- Parameters:
leading- The new leading for the font.
public void setMaxWidth(float maxWidth)
This will set the max width for the font.
- Overrides:
- setMaxWidth in interface PDFontDescriptor
- Parameters:
maxWidth- The new max width for the font.
public void setMissingWidth(float missingWidth)
This will set the missing width for the font.
- Parameters:
missingWidth- The new missing width for the font.
public void setStemH(float stemH)
This will set the stem H for the font.
- Overrides:
- setStemH in interface PDFontDescriptor
- Parameters:
stemH- The new stem h for the font.
public void setStemV(float stemV)
This will set the stem V for the font.
- Overrides:
- setStemV in interface PDFontDescriptor
- Parameters:
stemV- The new stem v for the font.
public void setXHeight(float xHeight)
This will set the x height for the font.
- Overrides:
- setXHeight in interface PDFontDescriptor
- Parameters:
xHeight- The new x height for the font.