Skip to main content



      Home
Home » Archived » 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 11:04 Go to previous messageGo to next message
Eclipse UserFriend
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 02:31 Go to previous messageGo to next message
Eclipse UserFriend
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
Eclipse UserFriend
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 01:51 Go to previous message
Eclipse UserFriend
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: Fri Apr 18 10:37:37 EDT 2025

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

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

Back to the top