public final class FontFactory extends Object
| Constructor and Description |
|---|
FontFactory() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumBytesNeededToIdentify() |
static boolean |
isOpenType(byte[] startingBytes)
Given the starting bytes of a font stream, returns true
if the bytes indicate that the font is an opentype font.
|
static OpenTypeFont[] |
load(FontInputStream in)
Given an input stream, creates OpenType FontData objects that represent it.
|
static OpenTypeFont[] |
load(FontInputStream in,
String base14CSSName,
String base14PSName) |
public static OpenTypeFont[] load(FontInputStream in) throws IOException, InvalidFontException, UnsupportedFontException
in - The input streamIOException - Thrown if the stream cannot be readInvalidFontException - Thrown if the stream does not represent a valid OpenType font.UnsupportedFontException - thrown if the stream contains information indicating that AFE
does not support this class of fonts.public static OpenTypeFont[] load(FontInputStream in, String base14CSSName, String base14PSName) throws IOException, InvalidFontException, UnsupportedFontException
public static int getNumBytesNeededToIdentify()
public static boolean isOpenType(byte[] startingBytes)
startingBytes - This inital bytes of an input stream.Copyright © 2010 - 2020 Adobe. All Rights Reserved