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

Error when print with user configuration font file

From: Deborah Lin <dlin@ceira.com>
Date: Mon, 19 Aug 2002 18:09:10 -0400 (EDT)
Message-ID: <10373FCB06A19442BB875B052B7D105501E2AC76@dcexc02.DCTC.COM>
To: <www-xsl-fo@w3.org>


"print" options does not work when use with a user configuration font

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 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 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 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"/>



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

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] 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





If anyone knows how to fix this problem please let me know.














Received on Tuesday, 20 August 2002 04:39:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC