public final class FontFactory extends Object
| Constructor and Description |
|---|
FontFactory() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumBytesNeededToIdentify() |
static boolean |
isCFF(byte[] startingBytes)
This is a very loose check to see if the font looks like
CFF.
|
static CFFFont[] |
load(FontByteArray buffer)
Given buffer of font data, creates cff FontData objects that represent it.
|
public static CFFFont[] load(FontByteArray buffer) throws IOException, InvalidFontException, UnsupportedFontException
IOException - Thrown if the stream cannot be readInvalidFontException - Thrown if the stream does not represent a valid cff font.UnsupportedFontException - Thrown if the stream represents an unsupported cff font.public static int getNumBytesNeededToIdentify()
public static boolean isCFF(byte[] startingBytes)
startingBytes - bytes from the start of the font stream. Must
contain at least getNumBytesNeededToIdentify bytes.Copyright © 2010 - 2020 Adobe. All Rights Reserved