|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.apps.AbstractFontReader
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.
Field Summary |
---|
Fields inherited from class org.apache.fop.fonts.apps.AbstractFontReader |
---|
log |
Constructor Summary | |
---|---|
PFMReader()
Main constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.fop.fonts.apps.AbstractFontReader |
---|
determineLogLevel, parseArguments, setLogLevel, writeFontXML, writeFontXML |
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(java.lang.String[] args)
args
- Command-line arguments: [options] metricfile.pfm xmlfile.xml
where options can be:
-fn fontname
default is to use the fontname in the .pfm file, but you can override
that name to make sure that the embedded font is used instead of installed
fonts when viewing documents with Acrobat Reader.
-cn classname
default is to use the fontname
-ef path to the Type1 .pfb fontfile
will add the possibility to embed the font. When running fop, fop will look
for this file to embed it
-er path to Type1 fontfile relative to org/apache/fop/render/pdf/fonts
you can also include the fontfile in the fop.jar file when building fop.
You can use both -ef and -er. The file specified in -ef will be searched first,
then the -er file.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 file
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |