DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11839>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11839

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

           Summary: Commandline "print" options does not work when use with
                    a user configuration font file
           Product: Fop
           Version: 0.20.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to