Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.font » [javadoc | source]
org.apache.pdfbox.pdmodel.font
public class: PDFontDescriptorDictionary [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.font.PDFontDescriptor
      org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary

All Implemented Interfaces:
    COSObjectable

This class represents an implementation to the font descriptor that gets its information from a COS Dictionary.
Constructor:
 public PDFontDescriptorDictionary() 
 public PDFontDescriptorDictionary(COSDictionary desc) 
    Constructor.
    Parameters:
    desc - The wrapped COS Dictionary.
Method from org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary Summary:
getAscent,   getAverageWidth,   getCOSDictionary,   getCOSObject,   getCapHeight,   getCharSet,   getDescent,   getFlags,   getFontBoundingBox,   getFontFamily,   getFontFile,   getFontFile2,   getFontFile3,   getFontName,   getFontStretch,   getFontWeight,   getItalicAngle,   getLeading,   getMaxWidth,   getMissingWidth,   getStemH,   getStemV,   getXHeight,   setAscent,   setAverageWidth,   setCapHeight,   setCharacterSet,   setDescent,   setFlags,   setFontBoundingBox,   setFontFamily,   setFontFile,   setFontFile2,   setFontFile3,   setFontName,   setFontStretch,   setFontWeight,   setItalicAngle,   setLeading,   setMaxWidth,   setMissingWidth,   setStemH,   setStemV,   setXHeight
Methods from org.apache.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
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary Detail:
 public float getAscent() 
    This will get the ascent for the font.
 public float getAverageWidth() 
    This will get the average width for the font.
 public COSDictionary getCOSDictionary() 
    This will get the dictionary for this object.
 public COSBase getCOSObject() 
    Convert this standard java object to a COS object.
 public float getCapHeight() 
    This will get the CapHeight for the font.
 public String getCharSet() 
    This will get the character set for the font.
 public float getDescent() 
    This will get the descent for the font.
 public int getFlags() 
    This will get the font flags.
 public PDRectangle getFontBoundingBox() 
    This will get the fonts bouding box.
 public String getFontFamily() 
    A string representing the preferred font family.
 public PDStream getFontFile() 
    A stream containing a Type 1 font program.
 public PDStream getFontFile2() 
    A stream containing a true type font program.
 public PDStream getFontFile3() 
    A stream containing a font program that is not true type or type 1.
 public String getFontName() 
    Get the font name.
 public String getFontStretch() 
    A string representing the preferred font stretch. According to the PDF Spec: The font stretch value; it must be one of the following (ordered from narrowest to widest): UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, Normal, SemiExpanded, Expanded, ExtraExpanded or UltraExpanded.
 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.
 public float getItalicAngle() 
    This will get the italic angle for the font.
 public float getLeading() 
    This will get the leading for the font.
 public float getMaxWidth() 
    This will get the max width for the font.
 public float getMissingWidth() 
    This will get the missing width for the font.
 public float getStemH() 
    This will get the stemH for the font.
 public float getStemV() 
    This will get the stemV for the font.
 public float getXHeight() 
    This will get the x height for the font.
 public  void setAscent(float ascent) 
    This will set the ascent for the font.
 public  void setAverageWidth(float averageWidth) 
    This will set the average width for the font.
 public  void setCapHeight(float capHeight) 
    This will set the cap height for the font.
 public  void setCharacterSet(String charSet) 
    This will set the character set for the font.
 public  void setDescent(float descent) 
    This will set the descent for the font.
 public  void setFlags(int flags) 
    This will set the font flags.
 public  void setFontBoundingBox(PDRectangle rect) 
    Set the fonts bounding box.
 public  void setFontFamily(String fontFamily) 
    This will set the font family.
 public  void setFontFile(PDStream type1Stream) 
    Set the type 1 font program.
 public  void setFontFile2(PDStream ttfStream) 
    Set the true type font program.
 public  void setFontFile3(PDStream stream) 
    Set a stream containing a font program that is not true type or type 1.
 public  void setFontName(String fontName) 
    This will set the font name.
 public  void setFontStretch(String fontStretch) 
    This will set the font stretch.
 public  void setFontWeight(float fontWeight) 
    Set the weight of the font.
 public  void setItalicAngle(float angle) 
    This will set the italic angle for the font.
 public  void setLeading(float leading) 
    This will set the leading for the font.
 public  void setMaxWidth(float maxWidth) 
    This will set the max width for the font.
 public  void setMissingWidth(float missingWidth) 
    This will set the missing width for the font.
 public  void setStemH(float stemH) 
    This will set the stem H for the font.
 public  void setStemV(float stemV) 
    This will set the stem V for the font.
 public  void setXHeight(float xHeight) 
    This will set the x height for the font.