com.mindfusion.pdf
Class PdfFont
java.lang.Object
com.mindfusion.pdf.PdfObject
com.mindfusion.pdf.PdfFont
- All Implemented Interfaces:
- INotify<PdfObject>, IPdfSaver, java.lang.Comparable
public class PdfFont
- extends PdfObject
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 |
FontInfo
public final PdfFont.tFontInfo FontInfo
PdfFont
public PdfFont(java.awt.Font font,
PdfPage _page)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
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