[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    Re: Cannot loadfont error
From:       haad <haaaad () gmail ! com>
Date:       2007-03-21 12:10:00
Message-ID: 46012098.3040902 () gmail ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeremias Maerki wrote:
> On 20.03.2007 17:17:42 haad wrote:
>> I'm trying to run fop-0.93 and I have problem with font embeding.
>> This is java trace when I run fop with -d parameter.
>>
> 
> <snip/>
>> java.lang.RuntimeException: Cannot load font. No font URIs available.
> <snip/>
>> my userconfig.xml file looks like this:
>>
>> <?xml version="1.0"?>
>> <fop version="1.0">
>>   <base>file:///home/haad/opt/fop-0.93/conf</base>
>>   <font-base>file:///home/haad/opt/fop-0.93/fonts/</font-base>
>>
>> [snip]
>>
>> <fonts>
>>  <font metrics-file="conf/timesbd.xml" kerning="yes" embed-file="timesbd.ttf">
> 
> Should be:
> <font metrics-url="conf/timesbd.xml" kerning="yes" embed-url="timesbd.ttf">
> as explained in http://xmlgraphics.apache.org/fop/0.93/configuration.html#renderers
> 
thx now it works like a charm :). Sorry for noise I have read this link almost
10 times.

[snip]

I think that fop documentation should mention that metrics file URL is relative
to font-base dir.



Regards
- ---------------------------------------------------------------
Adam Hamsik
ICQ 249727910
jabber haad@jabber.org
- ---------------------------------------------------------------
There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
				
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGASCX9Wt2FT7y228RAgLfAKCDKcBNGdPDvu/O5yBumcvvlO6fUwCfRkcL
Ma+yJkXw9WjVxwRCFciQTjM=
=zHV+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic