|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lowagie.text.pdf.DefaultFontMapper | +--com.jrefinery.report.targets.support.itext.BaseFontFactory
The BaseFontFactory is used to find and register all TrueType fonts for embedding them in the PDF file.
Method Summary | |
static java.lang.String |
getDefaultFontEncoding()
Returns the default font encoding. |
static BaseFontFactory |
getFontFactory()
Returns/creates the singleton font factory. |
java.lang.String |
getFontfileForName(java.lang.String font)
Returns the name of the font file by looking up the name. |
java.util.Iterator |
getRegisteredFonts()
Returns all registered fonts as enumeration. |
void |
registerDefaultFontPath()
Register os-specific font paths to the PDF-FontFactory. |
void |
registerFontFile(java.lang.String filename,
java.lang.String encoding)
Register the font (must end this *.ttf) to the FontFactory. |
void |
registerFontPath(java.io.File file,
java.lang.String encoding)
Register all fonts (*.ttf files) in the given path. |
Methods inherited from class com.lowagie.text.pdf.DefaultFontMapper |
awtToPdf, getAliases, getBaseFontParameters, getMapper, insertDirectory, insertNames, pdfToAwt, putAlias, putName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void registerDefaultFontPath()
public void registerFontPath(java.io.File file, java.lang.String encoding)
file
- the directory that contains the font files.encoding
- the encoding.public void registerFontFile(java.lang.String filename, java.lang.String encoding)
filename
- the filename.encoding
- the encoding.public java.util.Iterator getRegisteredFonts()
public java.lang.String getFontfileForName(java.lang.String font)
font
- the font name
public static final java.lang.String getDefaultFontEncoding()
public static BaseFontFactory getFontFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |