public class PFMReader extends AbstractFontReader
log
Constructor and Description |
---|
PFMReader()
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
constructFontXML(PFMFile pfm,
java.lang.String fontName,
java.lang.String className,
java.lang.String resource,
java.lang.String file)
Generates the font metrics file from the PFM file.
|
PFMFile |
loadPFM(java.lang.String filename)
Read a PFM file and returns it as an object.
|
static void |
main(java.lang.String[] args)
The main method for the PFM reader tool.
|
void |
preview(PFMFile pfm)
Displays a preview of the PFM file on the console.
|
determineLogLevel, parseArguments, setLogLevel, writeFontXML, writeFontXML
public static void main(java.lang.String[] args)
args
- Command-line arguments: [options] metricfile.pfm xmlfile.xml
where options can be:
-fn public PFMFile loadPFM(java.lang.String filename) throws java.io.IOException
filename
- The filename of the PFM file.java.io.IOException
- In case of an I/O problempublic void preview(PFMFile pfm)
pfm
- The PFM file to preview.public org.w3c.dom.Document constructFontXML(PFMFile pfm, java.lang.String fontName, java.lang.String className, java.lang.String resource, java.lang.String file)
pfm
- The PFM file to generate the font metrics from.fontName
- name of the fontclassName
- class name for the fontresource
- path to the font as embedded resourcefile
- path to the font as fileCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.