com.mindfusion.pdf
Class PdfFont

java.lang.Object
  extended by com.mindfusion.pdf.PdfObject
      extended by com.mindfusion.pdf.PdfFont
All Implemented Interfaces:
INotify<PdfObject>, IPdfSaver, java.lang.Comparable

public class PdfFont
extends PdfObject


Nested Class Summary
 class PdfFont.tFontInfo
           
 
Field Summary
 PdfFont.tFontInfo FontInfo
           
 
Fields inherited from class com.mindfusion.pdf.PdfObject
currentRotation, currentTransform, id, offset, page, parent, pdfType, size
 
Constructor Summary
PdfFont(java.awt.Font font, PdfPage _page)
           
 
Method Summary
 java.lang.String getBriefFontName()
           
static java.lang.String getBriefFontName(java.awt.Font font)
           
protected  byte[] getContent()
           
 PdfFontDescription getFontDesc()
           
 java.lang.String getFontFamily()
           
 java.awt.FontMetrics getFontMetrics()
           
 java.lang.String getFontName()
           
static java.lang.String getFontName(java.awt.Font font)
           
static java.lang.String getFontName(java.awt.Font font, boolean useSize)
           
 float getFontSize()
           
 float getFontSizeInPixels()
           
 java.lang.String getFontStretch()
           
 int getFontWeight()
           
 java.awt.Font getSysFont()
           
 boolean isSimple()
           
 
Methods inherited from class com.mindfusion.pdf.PdfObject
compare, compareTo, getCollectionId, getCurrentRotation, getCurrentTransform, getDocument, getId, getName, getObjectFooter, getObjectHeader, getOffset, getPage, getParent, getPdfType, getSize, isParentless, isRoot, OnAdded, OnChanged, registerObject, Save, setCollectionId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FontInfo

public final PdfFont.tFontInfo FontInfo
Constructor Detail

PdfFont

public PdfFont(java.awt.Font font,
               PdfPage _page)
        throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

isSimple

public boolean isSimple()

getFontMetrics

public java.awt.FontMetrics getFontMetrics()

getSysFont

public java.awt.Font getSysFont()

getFontDesc

public PdfFontDescription getFontDesc()

getFontFamily

public java.lang.String getFontFamily()

getFontWeight

public int getFontWeight()

getFontStretch

public java.lang.String getFontStretch()

getContent

protected byte[] getContent()
                     throws java.io.IOException,
                            java.lang.IllegalArgumentException
Overrides:
getContent in class PdfObject
Throws:
java.io.IOException
java.lang.IllegalArgumentException

getBriefFontName

public java.lang.String getBriefFontName()
                                  throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getFontName

public java.lang.String getFontName()
                             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getFontName

public static java.lang.String getFontName(java.awt.Font font)
                                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getBriefFontName

public static java.lang.String getBriefFontName(java.awt.Font font)
                                         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getFontSize

public float getFontSize()

getFontSizeInPixels

public float getFontSizeInPixels()

getFontName

public static java.lang.String getFontName(java.awt.Font font,
                                           boolean useSize)
                                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException