|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.pfb.PfbParser
public class PfbParser
Parser for a pfb-file.
Adobe Type 1 BaseFont Format
see 2.2 BaseFont Dictionary
Type 1 BaseFont Program [ASCII - eexec encryption (Binary only) - ASCII]
TODO mgn: use RandomAccessR and put indexOf in it
| Field Summary | |
|---|---|
static int |
C1
C1. |
static int |
C2
C2. |
static int |
CHARSTRING_R
In charstring encryption, the initial key for the variable R is 4330 (decimal) |
static int |
EEXEC_R
In eexec encryption, the initial key for the variable R is 55665 (decimal). |
| Constructor Summary | |
|---|---|
PfbParser(byte[] data)
Create a new object. |
|
PfbParser(java.io.File file)
Create a new object. |
|
PfbParser(java.io.InputStream in)
Create a new object. |
|
PfbParser(java.lang.String filename)
Create a new object. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getAllGylyphNames()
Returns all the glyph names in the font, or null, if not
available. |
java.lang.String[] |
getEncoding()
Returns the encoding (id - glyphanme). |
java.io.InputStream |
getInputStream()
Returns the pfb data as stream. |
int[] |
getLengths()
Returns the lengths. |
byte[] |
getPart(int idx)
Returns the part of the array. |
byte[] |
getPfbdata()
Returns the pfbdata (complete). |
int |
size()
Returns the size of the pfb-data. |
void |
toPfa(java.io.OutputStream out)
Write the data as pfa to the output stream. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int C1
public static final int C2
public static final int CHARSTRING_R
public static final int EEXEC_R
| Constructor Detail |
|---|
public PfbParser(byte[] data)
throws FontException
data - the data array.
FontException - if an font error occurs.
public PfbParser(java.io.File file)
throws FontException
file - The input file.
FontException - if an IO-error occurs.
public PfbParser(java.io.InputStream in)
throws FontException
in - The input.
FontException - if an IO-error occurs.
public PfbParser(java.lang.String filename)
throws FontException
filename - the file name
FontException - if an font error occurs.| Method Detail |
|---|
public java.lang.String[] getAllGylyphNames()
null, if not
available.
public java.lang.String[] getEncoding()
public java.io.InputStream getInputStream()
public int[] getLengths()
public byte[] getPart(int idx)
idx - the part index.
public byte[] getPfbdata()
public int size()
public void toPfa(java.io.OutputStream out)
throws java.io.IOException
out - The output.
java.io.IOException - if an IO-error occurs.
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
XMLWriterConvertible
writeXML in interface XMLWriterConvertiblewriter - the XML-Writer
java.io.IOException - if an IO-error occurs.XMLWriterConvertible.writeXML(org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||