On 1/11/2012 10:03 AM, Dude wrote:
> I would like to add my own Font Path to birt at run time. Birt should
> use this Folder too. While it is looking for the font to generate the PDF.
> Is this possible any ideas ??
> Thanks a lot ! Dude
I believe that call has to point to a url with a config file similar to
the fontsConfig.xml that BIRT uses.
On 1/12/2012 2:26 AM, Dude wrote:
> Hi Thanks for the quick reply
> I already read this post. I tried to do it with
> EngineConfig.setFontConfig(URL) this but I recive a SAXParseException
> with the text "Content is not allowed in prolog."
> My Code looks like this
> final EngineConfig config = new EngineConfig();
> URL url = new URL( "file:///c:/birtfonts/" );
> config.setFontConfig( url );
> What do I wrong ??
> In the birtfonts folder are ttf Files Thanks for any help
You are right this what i figured out yesterday already!
Now my point is how is it possible to make it dynamicaly.
With this solution you can only add at the startup I want to do it while the app is running
Did you try changing the url in the EngineConfig after the app was
running? You could also try changing the system property.
On 1/13/2012 2:31 AM, Dude wrote:
> Hi Jason
> You are right this what i figured out yesterday already!
> Now my point is how is it possible to make it dynamicaly.
> With this solution you can only add at the startup I want to do it while
> the app is running