Return-Path: Delivered-To: apmail-xmlgraphics-fop-commits-archive@www.apache.org Received: (qmail 27045 invoked from network); 21 Dec 2005 22:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Dec 2005 22:13:46 -0000 Received: (qmail 72704 invoked by uid 500); 21 Dec 2005 22:13:46 -0000 Delivered-To: apmail-xmlgraphics-fop-commits-archive@xmlgraphics.apache.org Received: (qmail 72672 invoked by uid 500); 21 Dec 2005 22:13:45 -0000 Mailing-List: contact fop-commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-dev@xmlgraphics.apache.org Delivered-To: mailing list fop-commits@xmlgraphics.apache.org Received: (qmail 72656 invoked by uid 99); 21 Dec 2005 22:13:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2005 14:13:45 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 21 Dec 2005 14:13:37 -0800 Received: (qmail 26905 invoked by uid 65534); 21 Dec 2005 22:13:14 -0000 Message-ID: <20051221221314.26904.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r358397 - /xmlgraphics/fop/branches/fop-0_91/src/documentation/content/xdocs/trunk/fonts.xml Date: Wed, 21 Dec 2005 22:13:13 -0000 To: fop-commits@xmlgraphics.apache.org From: jeremias@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jeremias Date: Wed Dec 21 14:13:06 2005 New Revision: 358397 URL: http://svn.apache.org/viewcvs?rev=358397&view=rev Log: Updated the classpath for PFMReader and TTFReader. Modified: xmlgraphics/fop/branches/fop-0_91/src/documentation/content/xdocs/trunk/fonts.xml Modified: xmlgraphics/fop/branches/fop-0_91/src/documentation/content/xdocs/trunk/fonts.xml URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/branches/fop-0_91/src/documentation/content/xdocs/trunk/fonts.xml?rev=358397&r1=358396&r2=358397&view=diff ============================================================================== --- xmlgraphics/fop/branches/fop-0_91/src/documentation/content/xdocs/trunk/fonts.xml (original) +++ xmlgraphics/fop/branches/fop-0_91/src/documentation/content/xdocs/trunk/fonts.xml Wed Dec 21 14:13:06 2005 @@ -135,13 +135,19 @@ Type 1 Font Metrics

FOP includes PFMReader, which reads the PFM file that normally comes with a Type 1 font, and generates an appropriate font metrics file for it. To use it, run the class org.apache.fop.fonts.apps.PFMReader:

-

Windows:

- java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar; - lib\xercesImpl.jar;lib\xalan.jar +

Windows (on JDK 1.4 and later):

+ java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar org.apache.fop.fonts.apps.PFMReader [options] pfm-file xml-file -

Unix:

- java -cp build/fop.jar:lib/avalon-framework.jar:lib/xml-apis.jar: - lib/xercesImpl.jar:lib/xalan.jar +

Windows (on JDK 1.3.x):

+ java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar;lib\xml-apis.jar; + lib\xercesImpl.jar;lib\xalan.jar;lib\serializer.jar + org.apache.fop.fonts.apps.PFMReader [options] pfm-file xml-file +

Unix (on JDK 1.4 and later):

+ java -cp build/fop.jar:lib/avalon-framework.jar:lib/commons-logging.jar:lib/commons-io.jar + org.apache.fop.fonts.apps.PFMReader [options] pfm-file xml-file +

Unix (on JDK 1.3.1):

+ java -cp build/fop.jar:lib/avalon-framework.jar:lib/commons-logging.jar:lib/commons-io.jar:lib/xml-apis.jar: + lib/xercesImpl.jar:lib/xalan.jar:lib/serializer.jar org.apache.fop.fonts.apps.PFMReader [options] pfm-file xml-file

PFMReader [options]:

    @@ -153,8 +159,7 @@
The classpath in the above example has been simplified for readability. You will have to adjust the classpath to the names of the actual JAR files in the lib directory. -avalon-framework.jar is necessary only for versions 0.20.5 or later. -xml-apis.jar, xercesImpl.jar and xalan.jar are not necessary for JDK version 1.4 or later. +xml-apis.jar, xercesImpl.jar, xalan.jar and serializer.jar are not necessary for JDK version 1.4 or later. The tool will construct some values (FontBBox, StemV and ItalicAngle) based on assumptions and calculations which are only an approximation to the real values. FontBBox and Italic Angle can be found in the human-readable part of the PFB file or in the AFM file. The PFMReader tool does not yet interpret PFB or AFM files, so if you want to be correct, you may have to adjust the values in the XML file manually. @@ -165,8 +170,7 @@

FOP includes TTFReader, which reads the TTF file and generates an appropriate font metrics file for it. Use it in a similar manner to PFMReader. For example, to create such a metrics file in Windows from the TrueType font at c:\myfonts\cmr10.ttf:

- java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar; - lib\xercesImpl.jar;lib\xalan.jar + java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar org.apache.fop.fonts.apps.TTFReader [options] C:\myfonts\cmr10.ttf ttfcm.xml

TTFReader [options]:

@@ -222,8 +226,7 @@

To get a list of the fonts in a collection, just start the TTFReader as if it were a normal TrueType file (without the -ttcname option). It will display all of the font names and exit with an Exception.

Here is an example of generating a metrics file for a .ttc file:

- java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar; - lib\xercesImpl.jar;lib\xalan.jar + java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar org.apache.fop.fonts.apps.TTFReader -ttcname "MS Mincho" msmincho.ttc msminch.xml --------------------------------------------------------------------- To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org