W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2002

Re: Error when print with user configuration font file

From: Mike Haarman <mhaarma@socsci.umn.edu>
Date: Tue, 20 Aug 2002 13:09:45 -0500 (CDT)
To: Deborah Lin <dlin@ceira.com>
cc: <www-xsl-fo@w3.org>
Message-ID: <Pine.GSO.4.30.0208201125310.9237-100000@trickster.hist.umn.edu>


Your question would be more profitably presented to the mailing list for
the users and developers of the software you refer to, archived here:

http://marc.theaimsgroup.com/?l=fop_user

You can subscribe to that list from:

http://xml.apache.org/mail.html


Mike

On Mon, 19 Aug 2002, Deborah Lin wrote:

> Hi:
>
>
>
> "print" options does not work when use with a user configuration font
> file.
>
> I added the "Arial Narrow" font in "Userconfig1.xsl" as follows:
>
>
>
> --------------------- userconfig1.xsl
> -----------------------------------
>
> <!-- Arial Narrow -->
>
> <font metrics-file="file:///c:/fop/fop-0.20.4/fonts/arialn.xml"
> kerning="yes" embed-file="c:\winnt\fonts\arialn.ttf">
>
>     <font-triplet name="Arial Narrow" style="normal" weight="normal"/>
>
>     <font-triplet name="ArialMTN" style="normal" weight="normal"/>
>
>  </font>
>
>  <font metrics-file="file:///c:/fop/fop-0.20.4/fonts/arialnb1.xml"
> kerning="yes" embed-file="c:\winnt\fonts\arialnb.ttf">
>
>     <font-triplet name="Arial Narrow" style="normal" weight="bold"/>
>
>     <font-triplet name="ArialMTN" style="normal" weight="bold"/>
>
>  </font>
>
>  <font metrics-file="file:///c:/fop/fop-0.20.4/fonts/arialni.xml"
> kerning="yes" embed-file="c:\winnt\fonts\arialni.ttf">
>
>     <font-triplet name="Arial Narrow" style="italic" weight="normal"/>
>
>     <font-triplet name="ArialMTN" style="italic" weight="normal"/>
>
>  </font>
>
>  <font metrics-file="file:///c:/fop/fop-0.20.4/fonts/arialnbi.xml"
> kerning="yes" embed-file="c:\winnt\fonts\arialnbi.ttf">
>
>     <font-triplet name="Arial Narrow" style="italic" weight="bold"/>
>
>     <font-triplet name="ArialMTN" style="italic" weight="bold"/>
>
>  </font>
>
>
>
> When I ran from the commandline I got the following errors:
>
>
>
> C:\fop\fop-0.20.4>fop -d -c conf/userconfig1.xml -xsl testman815.xsl
> -xml manifest.xml  -print
>
>
>
> C:\fop\fop-0.20.4>java -cp
> build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar
> ;lib\xml-apis.jar;lib\avalon-framework-cvs-200
>
> 20315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -d
> -c conf/userconfig1.xml -xsl testman815.xsl -xml manifest.xml -print
>
> [DEBUG] Input mode:
>
> [DEBUG] xslt transformation
>
> [DEBUG] xml input file: manifest.xml
>
> [DEBUG] xslt stylesheet: testman815.xsl
>
> [DEBUG] Output mode:
>
> [DEBUG] print directly
>
> [DEBUG] OPTIONS
>
> [DEBUG] user configuration file: conf\userconfig1.xml
>
> [DEBUG] debug mode on
>
> [DEBUG] dump configuration
>
> [DEBUG] quiet mode on
>
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
>
> [DEBUG] reading user configuration file
>
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
>
> [DEBUG] base directory: file:/C:/fop/fop-0.20.4/
>
> [ERROR] FOP 0.20.4
>
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
>
> [ERROR] Logger not set
>
> [INFO] building formatting object tree
>
> [DEBUG] setting up fonts
>
> [INFO] [1]
>
> [DEBUG] create embedFont c:\winnt\fonts\arialnb.ttf
>
> [ERROR] Failed to create embedFont c:\winnt\fonts\arialnb.ttf :
> java.lang.NoSuchMethodError: java.awt.Font: method
> createFont(ILjava/io/InputStream;)Ljava/awt/Font; not found
>
> [DEBUG] create embedFont c:\winnt\fonts\arialn.ttf
>
> [ERROR] Failed to create embedFont c:\winnt\fonts\arialn.ttf :
> java.lang.NoSuchMethodError: java.awt.Font: method
> createFont(ILjava/io/InputStream;)Ljava/awt/Font; not found
>
> [INFO] [2]
>
> [INFO] [3]
>
> [INFO] [4]
>
> [INFO] [5]
>
> [INFO] [6]
>
> [INFO] [7]
>
> [INFO] Parsing of document complete, stopping renderer
>
>
>
> C:\fop\fop-0.20.4>
>
>
>
>
>
> If anyone knows how to fix this problem please let me know.
>
>
>
> Thanks
>
> Deborah
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

----------------------------------------------------------------
Mike Haarman
mhaarma@socsci.umn.edu
Received on Tuesday, 20 August 2002 14:09:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT