OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

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

[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
Can you post your config file and, if possible, the FO file resulting
from the XSLT transformation (or a stripped-down version showing the


> -----Original Message-----
> From: Mauritz Jeanson [mailto:mj@johanneberg.com] 
> 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-base>file:///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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]