| Constructor and Description |
|---|
FontFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IFont |
load(byte[] fontByteArray)
Loads a font from specified byte array.
|
static IFont |
load(ByteArrayInputStream fontByteStream)
Loads a font file from specified byte stream.
|
static IFont |
load(File fontFilePath)
Loads a font from specified
File instance. |
static IFont |
load(InputStream fontStream)
Loads a font file from specified stream.
|
static IFont |
load(String fontFilePath)
Loads a font file specified by its pathname.
|
public static IFont load(String fontFilePath) throws IOException, XFEException
fontFilePath - pathname of the font fileIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.public static IFont load(File fontFilePath) throws IOException, XFEException
File instance.fontFilePath - File representing the fontIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.public static IFont load(InputStream fontStream) throws IOException, XFEException
fontStream - stream containing the fontIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.public static IFont load(ByteArrayInputStream fontByteStream) throws IOException, XFEException
fontByteStream - byte stream containing the fontIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.public static IFont load(byte[] fontByteArray) throws IOException, XFEException
fontByteArray - byte array containing the fontIOException - if an I/O error occurs.XFEException - if an illegal argument is supplied.