public final class PdfFontFactory extends Object
| Constructor and Description |
|---|
PdfFontFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
checkFontDictionary(PdfDictionary fontDic,
PdfName fontType,
boolean isException) |
static PdfFont |
createFont() |
static PdfFont |
createFont(byte[] font,
boolean embedded) |
static PdfFont |
createFont(byte[] font,
String encoding) |
static PdfFont |
createFont(byte[] font,
String encoding,
boolean embedded) |
static PdfFont |
createFont(byte[] font,
String encoding,
boolean embedded,
boolean cached) |
static PdfFont |
createFont(FontProgram fontProgram) |
static PdfFont |
createFont(FontProgram fontProgram,
String encoding) |
static PdfFont |
createFont(FontProgram fontProgram,
String encoding,
boolean embedded) |
static PdfFont |
createFont(PdfDictionary fontDictionary) |
static PdfFont |
createFont(String path) |
static PdfFont |
createFont(String path,
boolean embedded) |
static PdfFont |
createFont(String path,
String encoding) |
static PdfFont |
createFont(String path,
String encoding,
boolean embedded) |
static PdfFont |
createRegisteredFont(String fontName) |
static PdfFont |
createRegisteredFont(String font,
String encoding) |
static PdfFont |
createRegisteredFont(String font,
String encoding,
boolean embedded) |
static PdfFont |
createRegisteredFont(String font,
String encoding,
boolean embedded,
boolean cached) |
static PdfFont |
createRegisteredFont(String font,
String encoding,
boolean embedded,
int style) |
static PdfFont |
createRegisteredFont(String font,
String encoding,
boolean embedded,
int style,
boolean cached) |
static PdfFont |
createTtcFont(byte[] ttc,
int ttcIndex,
String encoding,
boolean embedded,
boolean cached) |
static PdfFont |
createTtcFont(String ttcPath,
int ttcIndex,
String encoding,
boolean embedded,
boolean cached) |
static PdfType3Font |
createType3Font(PdfDocument document,
boolean colorized) |
static Set<String> |
getRegisteredFamilies()
Gets a set of registered font names.
|
static Set<String> |
getRegisteredFonts()
Gets a set of registered font names.
|
static boolean |
isRegistered(String fontname)
Checks if a certain font is registered.
|
static void |
register(String path)
Register a ttf- or a ttc-file.
|
static void |
register(String path,
String alias)
Register a font file and use an alias for the font contained in it.
|
static int |
registerDirectory(String dir)
Register all the fonts in a directory.
|
static void |
registerFamily(String familyName,
String fullName,
String path)
Register a font by giving explicitly the font family and name.
|
static int |
registerSystemDirectories()
Register fonts in some probable directories.
|
public static PdfFont createFont() throws IOException
IOExceptionpublic static PdfFont createFont(PdfDictionary fontDictionary)
public static PdfFont createFont(String path) throws IOException
IOExceptionpublic static PdfFont createFont(String path, String encoding) throws IOException
IOExceptionpublic static PdfFont createTtcFont(byte[] ttc, int ttcIndex, String encoding, boolean embedded, boolean cached) throws IOException
IOExceptionpublic static PdfFont createTtcFont(String ttcPath, int ttcIndex, String encoding, boolean embedded, boolean cached) throws IOException
IOExceptionpublic static PdfFont createFont(String path, boolean embedded) throws IOException
IOExceptionpublic static PdfFont createFont(String path, String encoding, boolean embedded) throws IOException
IOExceptionpublic static PdfFont createFont(FontProgram fontProgram, String encoding, boolean embedded) throws IOException
IOExceptionpublic static PdfFont createFont(FontProgram fontProgram, String encoding) throws IOException
IOExceptionpublic static PdfFont createFont(FontProgram fontProgram) throws IOException
IOExceptionpublic static PdfFont createFont(byte[] font, String encoding) throws IOException
IOExceptionpublic static PdfFont createFont(byte[] font, boolean embedded) throws IOException
IOExceptionpublic static PdfFont createFont(byte[] font, String encoding, boolean embedded) throws IOException
IOExceptionpublic static PdfFont createFont(byte[] font, String encoding, boolean embedded, boolean cached) throws IOException
IOExceptionpublic static PdfType3Font createType3Font(PdfDocument document, boolean colorized) throws IOException
IOExceptionpublic static PdfFont createRegisteredFont(String font, String encoding, boolean embedded, int style, boolean cached) throws IOException
IOExceptionpublic static PdfFont createRegisteredFont(String font, String encoding, boolean embedded, boolean cached) throws IOException
IOExceptionpublic static PdfFont createRegisteredFont(String font, String encoding, boolean embedded) throws IOException
IOExceptionpublic static PdfFont createRegisteredFont(String font, String encoding, boolean embedded, int style) throws IOException
IOExceptionpublic static PdfFont createRegisteredFont(String font, String encoding) throws IOException
IOExceptionpublic static PdfFont createRegisteredFont(String fontName) throws IOException
IOExceptionpublic static void registerFamily(String familyName, String fullName, String path)
familyName - the font familyfullName - the font namepath - the font pathpublic static void register(String path)
path - the path to a ttf- or ttc-filepublic static void register(String path, String alias)
path - the path to a font filealias - the alias you want to use for the fontpublic static int registerDirectory(String dir)
dir - the directorypublic static int registerSystemDirectories()
public static Set<String> getRegisteredFonts()
public static Set<String> getRegisteredFamilies()
public static boolean isRegistered(String fontname)
fontname - the name of the font that has to be checked.protected static boolean checkFontDictionary(PdfDictionary fontDic, PdfName fontType, boolean isException)
Copyright © 1998–2016 iText Group NV. All rights reserved.