Method from com.lowagie.text.FontFactory Detail: |
public static boolean contains(String fontname) {
return fontImp.isRegistered(fontname);
}
Gets a set of registered fontnames. |
public static Font getFont(Properties attributes) {
fontImp.defaultEmbedding = defaultEmbedding;
fontImp.defaultEncoding = defaultEncoding;
return fontImp.getFont(attributes);
}
Constructs a Font -object. |
public static Font getFont(String fontname) {
return getFont(fontname, defaultEncoding, defaultEmbedding, Font.UNDEFINED, Font.UNDEFINED, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding) {
return getFont(fontname, encoding, defaultEmbedding, Font.UNDEFINED, Font.UNDEFINED, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
float size) {
return getFont(fontname, defaultEncoding, defaultEmbedding, size, Font.UNDEFINED, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
boolean embedded) {
return getFont(fontname, encoding, embedded, Font.UNDEFINED, Font.UNDEFINED, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
float size) {
return getFont(fontname, encoding, defaultEmbedding, size, Font.UNDEFINED, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
float size,
Color color) {
return getFont(fontname, defaultEncoding, defaultEmbedding, size, Font.UNDEFINED, color);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
float size,
int style) {
return getFont(fontname, defaultEncoding, defaultEmbedding, size, style, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
boolean embedded,
float size) {
return getFont(fontname, encoding, embedded, size, Font.UNDEFINED, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
float size,
int style) {
return getFont(fontname, encoding, defaultEmbedding, size, style, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
float size,
int style,
Color color) {
return getFont(fontname, defaultEncoding, defaultEmbedding, size, style, color);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
boolean embedded,
float size,
int style) {
return getFont(fontname, encoding, embedded, size, style, null);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
float size,
int style,
Color color) {
return getFont(fontname, encoding, defaultEmbedding, size, style, color);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
boolean embedded,
float size,
int style,
Color color) {
return fontImp.getFont(fontname, encoding, embedded, size, style, color);
}
Constructs a Font -object. |
public static Font getFont(String fontname,
String encoding,
boolean embedded,
float size,
int style,
Color color,
boolean cached) {
return fontImp.getFont(fontname, encoding, embedded, size, style, color, cached);
}
Constructs a Font -object. |
public static FontFactoryImp getFontImp() {
return fontImp;
}
Gets the font factory implementation. |
public static Set getRegisteredFamilies() {
return fontImp.getRegisteredFamilies();
}
Gets a set of registered fontnames. |
public static Set getRegisteredFonts() {
return fontImp.getRegisteredFonts();
}
Gets a set of registered fontnames. |
public static boolean isRegistered(String fontname) {
return fontImp.isRegistered(fontname);
}
Checks if a certain font is registered. |
public static void register(String path) {
register(path, null);
}
Register a ttf- or a ttc-file. |
public static void register(String path,
String alias) {
fontImp.register(path, alias);
}
Register a font file and use an alias for the font contained in it. |
public static int registerDirectories() {
return fontImp.registerDirectories();
}
Register fonts in some probable directories. It usually works in Windows,
Linux and Solaris. |
public static int registerDirectory(String dir) {
return fontImp.registerDirectory(dir);
}
Register all the fonts in a directory. |
public static int registerDirectory(String dir,
boolean scanSubdirectories) {
return fontImp.registerDirectory(dir, scanSubdirectories);
}
Register all the fonts in a directory and possibly its subdirectories. |
public void registerFamily(String familyName,
String fullName,
String path) {
fontImp.registerFamily(familyName, fullName, path);
}
Register a font by giving explicitly the font family and name. |
public static void setFontImp(FontFactoryImp fontImp) {
if (fontImp == null)
throw new NullPointerException("FontFactoryImp cannot be null.");
FontFactory.fontImp = fontImp;
}
Sets the font factory implementation. |