PDFontDescriptorAFM
, PDFontDescriptorDictionary
public abstract class PDFontDescriptor
extends java.lang.Object
Constructor | Description |
---|---|
PDFontDescriptor() |
Modifier and Type | Method | Description |
---|---|---|
abstract float |
getAscent() |
This will get the ascent for the font.
|
abstract float |
getAverageWidth() |
This will get the average width for the font.
|
abstract float |
getCapHeight() |
This will get the CapHeight for the font.
|
abstract java.lang.String |
getCharSet() |
This will get the character set for the font.
|
abstract float |
getDescent() |
This will get the descent for the font.
|
abstract int |
getFlags() |
This will get the font flags.
|
abstract PDRectangle |
getFontBoundingBox() |
This will get the fonts bouding box.
|
abstract java.lang.String |
getFontFamily() |
A string representing the preferred font family.
|
abstract java.lang.String |
getFontName() |
Get the font name.
|
abstract java.lang.String |
getFontStretch() |
A string representing the preferred font stretch.
|
abstract float |
getFontWeight() |
The weight of the font.
|
abstract float |
getItalicAngle() |
This will get the italic angle for the font.
|
abstract float |
getLeading() |
This will get the leading for the font.
|
abstract float |
getMaxWidth() |
This will get the max width for the font.
|
abstract float |
getMissingWidth() |
This will get the missing width for the font.
|
abstract float |
getStemH() |
This will get the stemH for the font.
|
abstract float |
getStemV() |
This will get the stemV for the font.
|
abstract float |
getXHeight() |
This will get the x height for the font.
|
boolean |
isAllCap() |
A convenience method that checks the flag bit.
|
boolean |
isFixedPitch() |
A convenience method that checks the flag bit.
|
boolean |
isForceBold() |
A convenience method that checks the flag bit.
|
boolean |
isItalic() |
A convenience method that checks the flag bit.
|
boolean |
isNonSymbolic() |
A convenience method that checks the flag bit.
|
boolean |
isScript() |
A convenience method that checks the flag bit.
|
boolean |
isSerif() |
A convenience method that checks the flag bit.
|
boolean |
isSmallCap() |
A convenience method that checks the flag bit.
|
boolean |
isSymbolic() |
A convenience method that checks the flag bit.
|
void |
setAllCap(boolean flag) |
A convenience method that sets the flag bit.
|
abstract void |
setAscent(float ascent) |
This will set the ascent for the font.
|
abstract void |
setAverageWidth(float averageWidth) |
This will set the average width for the font.
|
abstract void |
setCapHeight(float capHeight) |
This will set the cap height for the font.
|
abstract void |
setCharacterSet(java.lang.String charSet) |
This will set the character set for the font.
|
abstract void |
setDescent(float descent) |
This will set the descent for the font.
|
void |
setFixedPitch(boolean flag) |
A convenience method that sets the flag bit.
|
abstract void |
setFlags(int flags) |
This will set the font flags.
|
abstract void |
setFontBoundingBox(PDRectangle rect) |
Set the fonts bounding box.
|
abstract void |
setFontFamily(java.lang.String fontFamily) |
This will set the font family.
|
abstract void |
setFontName(java.lang.String fontName) |
This will set the font name.
|
abstract void |
setFontStretch(java.lang.String fontStretch) |
This will set the font stretch.
|
abstract void |
setFontWeight(float fontWeight) |
Set the weight of the font.
|
void |
setForceBold(boolean flag) |
A convenience method that sets the flag bit.
|
void |
setItalic(boolean flag) |
A convenience method that sets the flag bit.
|
abstract void |
setItalicAngle(float angle) |
This will set the italic angle for the font.
|
abstract void |
setLeading(float leading) |
This will set the leading for the font.
|
abstract void |
setMaxWidth(float maxWidth) |
This will set the max width for the font.
|
abstract void |
setMissingWidth(float missingWidth) |
This will set the missing width for the font.
|
void |
setNonSymbolic(boolean flag) |
A convenience method that sets the flag bit.
|
void |
setScript(boolean flag) |
A convenience method that sets the flag bit.
|
void |
setSerif(boolean flag) |
A convenience method that sets the flag bit.
|
void |
setSmallCap(boolean flag) |
A convenience method that sets the flag bit.
|
abstract void |
setStemH(float stemH) |
This will set the stem H for the font.
|
abstract void |
setStemV(float stemV) |
This will set the stem V for the font.
|
void |
setSymbolic(boolean flag) |
A convenience method that sets the flag bit.
|
abstract void |
setXHeight(float xHeight) |
This will set the x height for the font.
|
public abstract java.lang.String getFontName()
public abstract void setFontName(java.lang.String fontName)
fontName
- The new name for the font.public abstract java.lang.String getFontFamily()
public abstract void setFontFamily(java.lang.String fontFamily)
fontFamily
- The font family.public abstract java.lang.String getFontStretch()
public abstract void setFontStretch(java.lang.String fontStretch)
fontStretch
- The font stretchpublic abstract float getFontWeight()
public abstract void setFontWeight(float fontWeight)
fontWeight
- The new weight of the font.public abstract int getFlags()
public abstract void setFlags(int flags)
flags
- The new font flags.public boolean isFixedPitch()
public void setFixedPitch(boolean flag)
flag
- The flag value.public boolean isSerif()
public void setSerif(boolean flag)
flag
- The flag value.public boolean isSymbolic()
public void setSymbolic(boolean flag)
flag
- The flag value.public boolean isScript()
public void setScript(boolean flag)
flag
- The flag value.public boolean isNonSymbolic()
public void setNonSymbolic(boolean flag)
flag
- The flag value.public boolean isItalic()
public void setItalic(boolean flag)
flag
- The flag value.public boolean isAllCap()
public void setAllCap(boolean flag)
flag
- The flag value.public boolean isSmallCap()
public void setSmallCap(boolean flag)
flag
- The flag value.public boolean isForceBold()
public void setForceBold(boolean flag)
flag
- The flag value.public abstract PDRectangle getFontBoundingBox()
public abstract void setFontBoundingBox(PDRectangle rect)
rect
- The new bouding box.public abstract float getItalicAngle()
public abstract void setItalicAngle(float angle)
angle
- The new italic angle for the font.public abstract float getAscent()
public abstract void setAscent(float ascent)
ascent
- The new ascent for the font.public abstract float getDescent()
public abstract void setDescent(float descent)
descent
- The new descent for the font.public abstract float getLeading()
public abstract void setLeading(float leading)
leading
- The new leading for the font.public abstract float getCapHeight()
public abstract void setCapHeight(float capHeight)
capHeight
- The new cap height for the font.public abstract float getXHeight()
public abstract void setXHeight(float xHeight)
xHeight
- The new x height for the font.public abstract float getStemV()
public abstract void setStemV(float stemV)
stemV
- The new stem v for the font.public abstract float getStemH()
public abstract void setStemH(float stemH)
stemH
- The new stem h for the font.public abstract float getAverageWidth() throws java.io.IOException
java.io.IOException
- If there is an error calculating the average width.public abstract void setAverageWidth(float averageWidth)
averageWidth
- The new average width for the font.public abstract float getMaxWidth()
public abstract void setMaxWidth(float maxWidth)
maxWidth
- The new max width for the font.public abstract java.lang.String getCharSet()
public abstract void setCharacterSet(java.lang.String charSet)
charSet
- The new character set for the font.public abstract float getMissingWidth()
public abstract void setMissingWidth(float missingWidth)
missingWidth
- The new missing width for the font.