Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Add My own Font Path to Birt
Add My own Font Path to Birt [message #778189] Wed, 11 January 2012 15:03 Go to next message
Dude  is currently offline Dude Friend
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 05:44 Go to previous messageGo to next message
sam va is currently offline sam vaFriend
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 07:26 Go to previous messageGo to next message
Dude  is currently offline Dude Friend
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 08: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 10:05 Go to previous messageGo to next message
sam va is currently offline sam vaFriend
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 10:31 Go to previous messageGo to next message
Dude  is currently offline Dude Friend
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 18:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
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
Re: Add My own Font Path to Birt [message #778409 is a reply to message #778284] Thu, 12 January 2012 16:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
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
Re: Add My own Font Path to Birt [message #778536 is a reply to message #778409] Fri, 13 January 2012 07:31 Go to previous messageGo to next message
Dude  is currently offline Dude Friend
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 16:20 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
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
Re: Add My own Font Path to Birt [message #1046599 is a reply to message #778680] Mon, 22 April 2013 05:51 Go to previous message
Karl Hill is currently offline Karl HillFriend
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 25 23:47:38 GMT 2024

Powered by FUDForum. Page generated in 0.03457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top