|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.apps.TTFReader
A tool which reads TTF files and generates XML font metrics file for use in FOP.
Constructor Summary | |
TTFReader()
|
Method Summary | |
Document |
constructFontXML(TTFFile ttf,
String fontName,
String className,
String resource,
String file,
boolean isCid,
String ttcName)
Generates the font metrics file from the TTF/TTC file. |
TTFFile |
loadTTF(String fileName,
String fontName)
Read a TTF file and returns it as an object. |
static void |
main(String[] args)
The main method for the TTFReader tool. |
void |
writeFontXML(Document doc,
String target)
Writes the generated DOM Document to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TTFReader()
Method Detail |
public static void main(String[] args)
args
- Command-line arguments: [options] fontfile.ttf xmlfile.xml
where options can be:
-fn public TTFFile loadTTF(String fileName, String fontName)
public void writeFontXML(Document doc, String target)
doc
- The DOM Document to save.target
- The target filename for the XML file.public Document constructFontXML(TTFFile ttf, String fontName, String className, String resource, String file, boolean isCid, String ttcName)
ttf
- 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 |