public class FontFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_FORK_FONT |
static int |
RESOURCE_FORK_FONT |
static int |
UNKNOWN |
| Constructor and Description |
|---|
FontFactory() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumBytesNeededToIdentify() |
static int |
isResourceFont(byte[] bytes,
URL url) |
static ResourceFont[] |
load(URL url,
int type) |
static FontData |
load(URL url,
int type,
int fontID,
int fondID) |
public static final int UNKNOWN
public static final int RESOURCE_FORK_FONT
public static final int DATA_FORK_FONT
public static FontData load(URL url, int type, int fontID, int fondID) throws InvalidFontException, UnsupportedFontException, FontLoadingException
url - this is the full URL including any resource fork informationtype - is this a data or resource forkfontID - the id of the font within the resourcefondID - the id of the FOND resource which describes this fontInvalidFontExceptionUnsupportedFontExceptionFontLoadingExceptionpublic static ResourceFont[] load(URL url, int type) throws InvalidFontException, UnsupportedFontException, FontLoadingException
url - the base URL of the font not including any possible resource fork informationtype - the type of the resource - data or resource forkInvalidFontExceptionUnsupportedFontExceptionFontLoadingExceptionpublic static int getNumBytesNeededToIdentify()
public static int isResourceFont(byte[] bytes,
URL url)
throws IOException
IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved