Re: [docbook-apps] FOP 0.93: Cannot load fonts/NullPointerException

2007-03-12 Thread Vincent Hennebert
[Re-sending to the list...]

Jeff Powanda a écrit :
 Yes, I've tried using absolute URLs for both the font-base element and
 the metrics-url attribute on the font element. Both still result in
 the null pointer exception when I run FOP.

Relative URLs should work, both for base and font-base. Are you sure
of your metrics filename? Do you also have the problem for other metrics
files?
Can you post your config file and, if possible, the FO file resulting
from the XSLT transformation (or a stripped-down version showing the
problem)?

Thanks,
Vincent

 -Original Message-
 From: Mauritz Jeanson [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 10, 2007 2:42 AM
 To: Jeff Powanda; docbook-apps@lists.oasis-open.org
 Subject: RE: [docbook-apps] FOP 0.93: Cannot load
 fonts/NullPointerException
 
 -Original Message-
 From: Jeff Powanda 

 I'm using the DocBook 1.72 XSL stylesheets with FOP 0.93. I 
 followed the Apache FOP instructions for regenerating font 
 metrics files, and I updated the FOP configuration file to 
 the new format. When I run FOP, I get the following exception.

 SEVERE: Exception

 java.lang.RuntimeException: Cannot load font: failed to 
 create Source from metrics file SY__.xml

 It didn't seem to be loading any of the fonts. The 
 font-base in the configuration file was correct, so I don't 
 know why it couldn't load the files. I decided to update the 
 configuration file to use relative URLs based on the base. 
 When I ran FOP again, I got a NullPointerException:
 
 
 Have you tried to use absolute URIs for either the font-base element
 or
 the metrics-url attribute on the font elements? These methods work for
 me.
 
 For example,
 
  font-basefile:///c:/Java/fop-0.93/conf//font-base
 
 or 
 
  font metrics-url=file:///C:/Java/fop-0.93/conf/gara.xml
 kerning=yes 
embed-url=file:///C:/WINDOWS/Fonts/GARA.TTF
 font-triplet name=Garamond style=normal weight=normal/
  /font
 
 /MJ
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: [docbook-apps] FOP 0.93: Cannot load fonts/NullPointerException

2007-03-10 Thread Mauritz Jeanson
 -Original Message-
 From: Jeff Powanda 
 
 I'm using the DocBook 1.72 XSL stylesheets with FOP 0.93. I 
 followed the Apache FOP instructions for regenerating font 
 metrics files, and I updated the FOP configuration file to 
 the new format. When I run FOP, I get the following exception.
 
 SEVERE: Exception
 
 java.lang.RuntimeException: Cannot load font: failed to 
 create Source from metrics file SY__.xml

 It didn't seem to be loading any of the fonts. The 
 font-base in the configuration file was correct, so I don't 
 know why it couldn't load the files. I decided to update the 
 configuration file to use relative URLs based on the base. 
 When I ran FOP again, I got a NullPointerException:


Have you tried to use absolute URIs for either the font-base element or
the metrics-url attribute on the font elements? These methods work for me.

For example,

 font-basefile:///c:/Java/fop-0.93/conf//font-base

or 

 font metrics-url=file:///C:/Java/fop-0.93/conf/gara.xml kerning=yes 
 embed-url=file:///C:/WINDOWS/Fonts/GARA.TTF
  font-triplet name=Garamond style=normal weight=normal/
 /font

/MJ



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



RE: [docbook-apps] FOP 0.93: Cannot load fonts/NullPointerException

2007-03-10 Thread Jeff Powanda
Yes, I've tried using absolute URLs for both the font-base element and
the metrics-url attribute on the font element. Both still result in
the null pointer exception when I run FOP.

Regards,
Jeff Powanda
Vocera Communications
Senior Technical Writer
408-790-4256
 
-Original Message-
From: Mauritz Jeanson [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 10, 2007 2:42 AM
To: Jeff Powanda; docbook-apps@lists.oasis-open.org
Subject: RE: [docbook-apps] FOP 0.93: Cannot load
fonts/NullPointerException

 -Original Message-
 From: Jeff Powanda 
 
 I'm using the DocBook 1.72 XSL stylesheets with FOP 0.93. I 
 followed the Apache FOP instructions for regenerating font 
 metrics files, and I updated the FOP configuration file to 
 the new format. When I run FOP, I get the following exception.
 
 SEVERE: Exception
 
 java.lang.RuntimeException: Cannot load font: failed to 
 create Source from metrics file SY__.xml

 It didn't seem to be loading any of the fonts. The 
 font-base in the configuration file was correct, so I don't 
 know why it couldn't load the files. I decided to update the 
 configuration file to use relative URLs based on the base. 
 When I ran FOP again, I got a NullPointerException:


Have you tried to use absolute URIs for either the font-base element
or
the metrics-url attribute on the font elements? These methods work for
me.

For example,

 font-basefile:///c:/Java/fop-0.93/conf//font-base

or 

 font metrics-url=file:///C:/Java/fop-0.93/conf/gara.xml
kerning=yes 
 embed-url=file:///C:/WINDOWS/Fonts/GARA.TTF
  font-triplet name=Garamond style=normal weight=normal/
 /font

/MJ



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