| Method from org.apache.fop.fonts.type1.PFBData Detail: |
public int getLength() {
return getLength1() + getLength2() + getLength3();
}
Returns the full length of the raw font file. |
public int getLength1() {
return this.headerSegment.length;
}
Returns the Length1 (length of the header segment). |
public int getLength2() {
return this.encryptedSegment.length;
}
Returns the Length2 (length of the encrypted segment). |
public int getLength3() {
return this.trailerSegment.length;
}
Returns the Length3 (length of the trailer segment). |
public int getPFBFormat() {
return this.pfbFormat;
}
Returns the format the font was loaded with. |
public void outputAllParts(OutputStream out) throws IOException {
out.write(this.headerSegment);
out.write(this.encryptedSegment);
out.write(this.trailerSegment);
}
Writes the PFB file in raw format to an OutputStream. |
public void setEncryptedSegment(byte[] encryptedSeg) {
this.encryptedSegment = encryptedSeg;
}
Sets the encrypted segment of the font file. |
public void setHeaderSegment(byte[] headerSeg) {
this.headerSegment = headerSeg;
}
Sets the header segment of the font file. |
public void setPFBFormat(int format) {
switch (format) {
case PFB_RAW:
case PFB_PC:
this.pfbFormat = format;
break;
case PFB_MAC:
throw new UnsupportedOperationException("Mac format is not yet implemented");
default:
throw new IllegalArgumentException("Invalid value for PFB format: " + format);
}
}
Sets the PFB format the font was loaded with. |
public void setTrailerSegment(byte[] trailerSeg) {
this.trailerSegment = trailerSeg;
}
Sets the trailer segment of the font file. |
public String toString() {
return "PFB: format=" + getPFBFormat()
+ " len1=" + getLength1()
+ " len2=" + getLength2()
+ " len3=" + getLength3();
}
|