views:

851

answers:

0

Hi all!

I use BIRT since early days and still have riddles regarding PDF emitter.

Short story: Can I configure fontsConfig.xml to load fonts from relative path or from jars?

Long story: We are using FOP for generating PDF in our web application as well as BIRT. It will be nice to share fonts between libraries. Unfortunately, I can't find a way how to do it with BIRT 2.3.1

The root of evil is fontsConfig.xml If I configure it like shown below it forks fine:

<font-paths>
<path path="fonts"/>
</font-paths>

But path doesn't allow me using neither relative paths not classpath (or I can't find an appropriate way how to configure it). Neither config1 nor config2 works.

Config1:

<font-paths>
<path path="../fonts"/>
</font-paths>

Config2:

<font-paths>
<path path="classpath:fonts"/>
</font-paths>

Any thoughts will be appreciated.