org.apache.fop.fonts.type1
Class PFBData
java.lang.Object
org.apache.fop.fonts.type1.PFBData
public class PFBData
extends java.lang.Object
Class that represents the contents of a PFB file.
static int | PFB_MAC - MAC Format (unsupported, yet)
|
static int | PFB_PC - PC format
|
static int | PFB_RAW - Raw format, no special file structure
|
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()
|
PFB_MAC
public static final int PFB_MAC
MAC Format (unsupported, yet)
PFB_PC
public static final int PFB_PC
PC format
PFB_RAW
public static final int PFB_RAW
Raw format, no special file structure
getLength
public int getLength()
Returns the full length of the raw font file.
getLength1
public int getLength1()
Returns the Length1 (length of the header segment).
getLength2
public int getLength2()
Returns the Length2 (length of the encrypted segment).
getLength3
public int getLength3()
Returns the Length3 (length of the trailer segment).
getPFBFormat
public int getPFBFormat()
Returns the format the font was loaded with.
- int one of the PFB_* constants
outputAllParts
public void outputAllParts(OutputStream out)
throws IOException
Writes the PFB file in raw format to an OutputStream.
out
- the OutputStream to write to
setEncryptedSegment
public void setEncryptedSegment(byte[] encryptedSeg)
Sets the encrypted segment of the font file.
encryptedSeg
- the encrypted segment
setHeaderSegment
public void setHeaderSegment(byte[] headerSeg)
Sets the header segment of the font file.
headerSeg
- the header segment
setPFBFormat
public void setPFBFormat(int format)
Sets the PFB format the font was loaded with.
format
- one of the PFB_* constants
setTrailerSegment
public void setTrailerSegment(byte[] trailerSeg)
Sets the trailer segment of the font file.
trailerSeg
- the trailer segment
toString
public String toString()
java.lang.Object.toString()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.