public class FontFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FONT_OPEN_TYPE |
static int |
FONT_TRUE_TYPE |
static int |
FONT_TYPE_0 |
static int |
FONT_TYPE_1 |
static int |
FONT_TYPE_3 |
| Modifier and Type | Method and Description |
|---|---|
FontFile |
createFontFile(java.io.File file,
int fontType,
java.lang.String fontSubType) |
FontFile |
createFontFile(Stream fontStream,
int fontType,
java.lang.String fontSubType) |
FontFile |
createFontFile(java.net.URL url,
int fontType,
java.lang.String fontSubType) |
boolean |
foundFontEngine()
Test if font engine is available on the class path and it has been
disabled with the proeprty awtFontSubstitution.
|
Font |
getFont(Library library,
java.util.HashMap entries) |
static FontFactory |
getInstance()
Returns a static instance of the FontManager class.
|
boolean |
isAwtFontSubstitution() |
void |
setAwtFontSubstitution(boolean awtFontSubstitution) |
void |
toggleAwtFontSubstitution() |
public static final int FONT_OPEN_TYPE
public static final int FONT_TRUE_TYPE
public static final int FONT_TYPE_0
public static final int FONT_TYPE_1
public static final int FONT_TYPE_3
public static FontFactory getInstance()
Returns a static instance of the FontManager class.
public FontFile createFontFile(Stream fontStream, int fontType, java.lang.String fontSubType)
public FontFile createFontFile(java.io.File file, int fontType, java.lang.String fontSubType)
public FontFile createFontFile(java.net.URL url, int fontType, java.lang.String fontSubType)
public boolean isAwtFontSubstitution()
public void setAwtFontSubstitution(boolean awtFontSubstitution)
public void toggleAwtFontSubstitution()
public boolean foundFontEngine()