Package org.apache.fop.afp.apps
Class FontPatternExtractor
- java.lang.Object
-
- org.apache.fop.afp.apps.FontPatternExtractor
-
public class FontPatternExtractor extends java.lang.ObjectThis class represents a tool for extracting the Type 1 PFB file from an AFP outline font.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.PrintStreamprintStream
-
Constructor Summary
Constructors Constructor Description FontPatternExtractor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private intcountUSAsciiCharacters(java.lang.String filename)voidextract(java.io.File file, java.io.File targetDir)Extracts the Type1 PFB file from the given AFP outline font.static voidmain(java.lang.String[] args)Main methodprivate voidprintln()private voidprintln(java.lang.String s)
-
-
-
Method Detail
-
extract
public void extract(java.io.File file, java.io.File targetDir) throws java.io.IOExceptionExtracts the Type1 PFB file from the given AFP outline font.- Parameters:
file- the AFP file to read fromtargetDir- the target directory where the PFB file is to be placed.- Throws:
java.io.IOException- if an I/O error occurs
-
println
private void println(java.lang.String s)
-
println
private void println()
-
countUSAsciiCharacters
private int countUSAsciiCharacters(java.lang.String filename)
-
main
public static void main(java.lang.String[] args)
Main method- Parameters:
args- the command-line arguments
-
-