public class TestFontUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Font[] |
buildAndCheckFont(FontFactory fontFactory,
java.io.InputStream is,
int debug) |
static Font.Builder |
builderForFontFile(java.io.File fontFile) |
static Font.Builder |
builderForFontFile(java.io.File fontFile,
boolean fingerprint) |
static Font[] |
loadFont(java.io.File file)
Open a file and read any fonts that it contains.
|
static Font[] |
loadFont(java.io.File file,
boolean fingerprint)
Open a file and read any fonts that it contains.
|
static Font[] |
loadFont(java.io.File file,
byte[]... expectedFingerprints)
Open a file and read any fonts that it contains and check the fonts against supplied expected
fingerprints.
|
static Font[] |
loadFontUsingByteArray(java.io.File file)
Open a file and read any fonts that it contains.
|
static Font[] |
loadFontUsingByteArray(java.io.File file,
boolean fingerprint)
Open a file and read any fonts that it contains.
|
static java.io.File |
serializeFont(java.io.File fontFile) |
static java.io.File |
serializeFont(Font font,
java.io.File serializedFontFile) |
static java.io.File |
serializeFont(Font font,
java.lang.String extension) |
public static Font[] loadFont(java.io.File file) throws java.io.IOException
file
- the file holding the font(s)java.io.IOException
public static Font[] loadFont(java.io.File file, boolean fingerprint) throws java.io.IOException
file
- the file holding the font(s)fingerprint
- fingerprinting on or offjava.io.IOException
public static Font[] loadFont(java.io.File file, byte[]... expectedFingerprints) throws java.io.IOException
file
- the file holding the font(s)expectedFingerprints
- array of expected fingerprints for each font in the filejava.io.IOException
public static Font[] loadFontUsingByteArray(java.io.File file) throws java.io.IOException
file
- the file holding the font(s)java.io.IOException
public static Font[] loadFontUsingByteArray(java.io.File file, boolean fingerprint) throws java.io.IOException
file
- the file holding the font(s)fingerprint
- fingerprinting on or offjava.io.IOException
public static Font[] buildAndCheckFont(FontFactory fontFactory, java.io.InputStream is, int debug) throws java.io.IOException
java.io.IOException
public static java.io.File serializeFont(java.io.File fontFile) throws java.lang.Exception
java.lang.Exception
public static java.io.File serializeFont(Font font, java.lang.String extension) throws java.lang.Exception
java.lang.Exception
public static java.io.File serializeFont(Font font, java.io.File serializedFontFile) throws java.lang.Exception
java.lang.Exception
public static Font.Builder builderForFontFile(java.io.File fontFile) throws java.io.IOException
java.io.IOException
public static Font.Builder builderForFontFile(java.io.File fontFile, boolean fingerprint) throws java.io.IOException
java.io.IOException