|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fop.fonts.apps.PFMReader
public class PFMReader
A tool which reads PFM files from Adobe Type 1 fonts and creates XML font metrics file for use in FOP.
Constructor Summary | |
---|---|
PFMReader()
|
Method Summary | |
---|---|
Document |
constructFontXML(PFMFile pfm,
String fontName,
String className,
String resource,
String file)
Generates the font metrics file from the PFM file. |
PFMFile |
loadPFM(String filename)
Read a PFM file and returns it as an object. |
static void |
main(String[] args)
The main method for the PFM reader tool. |
void |
preview(PFMFile pfm)
Displays a preview of the PFM file on the console. |
void |
writeFontXML(Document doc,
String target)
Writes the generated DOM Document to a file. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PFMReader()
Method Detail |
---|
public static void main(String[] args)
args
- Command-line arguments: [options] metricfile.pfm xmlfile.xml
where options can be:
-fn public PFMFile loadPFM(String filename)
filename
- The filename of the PFM file.
public void preview(PFMFile pfm)
pfm
- The PFM file to preview.public void writeFontXML(Document doc, String target)
doc
- The DOM Document to save.target
- The target filename for the XML file.public Document constructFontXML(PFMFile pfm, String fontName, String className, String resource, String file)
pfm
- The PFM file to generate the font metrics from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |