public class ITextFontResolver extends java.lang.Object implements FontResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
ITextFontResolver.FontDescription |
| Constructor and Description |
|---|
ITextFontResolver(SharedContext sharedContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFont(java.lang.String path,
boolean embedded) |
void |
addFont(java.lang.String path,
java.lang.String encoding,
boolean embedded) |
void |
addFont(java.lang.String path,
java.lang.String encoding,
boolean embedded,
java.lang.String pathToPFB) |
void |
addFontDirectory(java.lang.String dir,
boolean embedded) |
void |
flushCache() |
void |
flushFontFaceFonts() |
org.xhtmlrenderer.pdf.ITextFontResolver.FontFamily |
getFontFamily(java.lang.String fontFamilyName) |
void |
importFontFaces(java.util.List fontFaces) |
FSFont |
resolveFont(SharedContext renderingContext,
FontSpecification spec) |
public ITextFontResolver(SharedContext sharedContext)
public FSFont resolveFont(SharedContext renderingContext, FontSpecification spec)
resolveFont in interface FontResolverpublic void flushCache()
flushCache in interface FontResolverpublic void flushFontFaceFonts()
public void importFontFaces(java.util.List fontFaces)
public void addFontDirectory(java.lang.String dir,
boolean embedded)
throws com.lowagie.text.DocumentException,
java.io.IOException
com.lowagie.text.DocumentExceptionjava.io.IOExceptionpublic void addFont(java.lang.String path,
boolean embedded)
throws com.lowagie.text.DocumentException,
java.io.IOException
com.lowagie.text.DocumentExceptionjava.io.IOExceptionpublic void addFont(java.lang.String path,
java.lang.String encoding,
boolean embedded)
throws com.lowagie.text.DocumentException,
java.io.IOException
com.lowagie.text.DocumentExceptionjava.io.IOExceptionpublic void addFont(java.lang.String path,
java.lang.String encoding,
boolean embedded,
java.lang.String pathToPFB)
throws com.lowagie.text.DocumentException,
java.io.IOException
com.lowagie.text.DocumentExceptionjava.io.IOExceptionpublic org.xhtmlrenderer.pdf.ITextFontResolver.FontFamily getFontFamily(java.lang.String fontFamilyName)