Modifier and Type | Field and Description |
---|---|
static int |
PFB_MAC
MAC Format (unsupported, yet)
|
static int |
PFB_PC
PC format
|
static int |
PFB_RAW
Raw format, no special file structure
|
Constructor and Description |
---|
PFBData() |
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Returns the full length of the raw font file.
|
int |
getLength1()
Returns the Length1 (length of the header segment).
|
int |
getLength2()
Returns the Length2 (length of the encrypted segment).
|
int |
getLength3()
Returns the Length3 (length of the trailer segment).
|
int |
getPFBFormat()
Returns the format the font was loaded with.
|
void |
outputAllParts(OutputStream out)
Writes the PFB file in raw format to an OutputStream.
|
void |
setEncryptedSegment(byte[] encryptedSeg)
Sets the encrypted segment of the font file.
|
void |
setHeaderSegment(byte[] headerSeg)
Sets the header segment of the font file.
|
void |
setPFBFormat(int format)
Sets the PFB format the font was loaded with.
|
void |
setTrailerSegment(byte[] trailerSeg)
Sets the trailer segment of the font file.
|
String |
toString() |
public static final int PFB_RAW
public static final int PFB_PC
public static final int PFB_MAC
public void setPFBFormat(int format)
format
- one of the PFB_* constantspublic int getPFBFormat()
public void setHeaderSegment(byte[] headerSeg)
headerSeg
- the header segmentpublic void setEncryptedSegment(byte[] encryptedSeg)
encryptedSeg
- the encrypted segmentpublic void setTrailerSegment(byte[] trailerSeg)
trailerSeg
- the trailer segmentpublic int getLength()
public int getLength1()
public int getLength2()
public int getLength3()
public void outputAllParts(OutputStream out) throws IOException
out
- the OutputStream to write toIOException
- In case of an I/O problemCopyright © 2007-2019. All Rights Reserved.