Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Add My own Font Path to Birt
Add My own Font Path to Birt [message #778189] Wed, 11 January 2012 10:03 Go to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
Hello
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
Re: Add My own Font Path to Birt [message #778276 is a reply to message #778189] Thu, 12 January 2012 00:44 Go to previous messageGo to next message
sam va is currently offline sam va
Messages: 121
Registered: July 2011
Senior Member
http://www.eclipse.org/forums/index.php/t/273579/
Re: Add My own Font Path to Birt [message #778284 is a reply to message #778276] Thu, 12 January 2012 02:26 Go to previous messageGo to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
Hi Thanks for the quick reply
I read the post
My question is: is it possible to add font path dynamicly because the EngineConfig is initialize once in my application?

Dude

[Updated on: Thu, 12 January 2012 03:49]

Report message to a moderator

Re: Add My own Font Path to Birt [message #778309 is a reply to message #778284] Thu, 12 January 2012 05:05 Go to previous messageGo to next message
sam va is currently offline sam va
Messages: 121
Registered: July 2011
Senior Member
YEs. You can set in PDFRenderOption
Re: Add My own Font Path to Birt [message #778315 is a reply to message #778309] Thu, 12 January 2012 05:31 Go to previous messageGo to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
No this method is dprecated and an ther is no equivalent for it
Re: Add My own Font Path to Birt [message #778407 is a reply to message #778189] Wed, 11 January 2012 13:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Have a look at:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347431

Jason

On 1/11/2012 10:03 AM, Dude wrote:
> Hello
> 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


Jason Weathersby

BIRT Exchange
Re: Add My own Font Path to Birt [message #778409 is a reply to message #778284] Thu, 12 January 2012 11:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I believe that call has to point to a url with a config file similar to
the fontsConfig.xml that BIRT uses.

Jason

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
>
> dude


Jason Weathersby

BIRT Exchange
Re: Add My own Font Path to Birt [message #778536 is a reply to message #778409] Fri, 13 January 2012 02:31 Go to previous messageGo to next message
Dude  is currently offline Dude
Messages: 20
Registered: August 2011
Junior Member
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

Dude
Re: Add My own Font Path to Birt [message #778680 is a reply to message #778536] Fri, 13 January 2012 11:20 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Did you try changing the url in the EngineConfig after the app was
running? You could also try changing the system property.

Jason

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
> Dude


Jason Weathersby

BIRT Exchange
Re: Add My own Font Path to Birt [message #1046599 is a reply to message #778680] Mon, 22 April 2013 01:51 Go to previous message
Karl Hill is currently offline Karl Hill
Messages: 1
Registered: April 2013
Junior Member
Give a try on this java font tools,
www.keepautomation.com/font_tools/java_class_library_barcode_font_encoder.html
Previous Topic:The cube cannot be created because the related dataset is missing.
Next Topic:Dynamic SQL in BIRT
Goto Forum:
  


Current Time: Thu Apr 17 17:39:04 EDT 2014

Powered by FUDForum. Page generated in 0.06927 seconds