Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Embedded fonts not found in BIRT 3.7.1
Embedded fonts not found in BIRT 3.7.1 [message #973236] Tue, 06 November 2012 06:59 Go to next message
Juergen Schwarz is currently offline Juergen Schwarz
Messages: 11
Registered: July 2009
Junior Member
Hi,

we use BIRT 3.7.1 integrated in our web applicaion using the POJO method
and somehow the font loading from the "fonts" subdirectory of the
org.eclipse.birt.report.engine bundle doesn't work anymore. It worked in
all BIRT version before. We supply two fonts in the fonts directory to
be sure to have these fonts always available no matter which system
fonts exist.

The problem seems to be in the method "getEmbededFontPath" of class
org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory:

The call to

Platform.getBundle("org.eclipse.birt.report.engine");

returns null, so that not font directory is set and our font is not found.

Any ideas how to resolve that without too much hassle? We cannot install
our fonts on all platforms we support, so the fonts subdir was always a
convenient way.
Re: Embedded fonts not found in BIRT 3.7.1 [message #973247 is a reply to message #973236] Tue, 06 November 2012 07:06 Go to previous messageGo to next message
Juergen Schwarz is currently offline Juergen Schwarz
Messages: 11
Registered: July 2009
Junior Member
Sorry, bundle is "org.eclipse.birt.report.engine.fonts".

Am 06.11.2012 07:59, schrieb Juergen Schwarz:
> Hi,
>
> we use BIRT 3.7.1 integrated in our web applicaion using the POJO method
> and somehow the font loading from the "fonts" subdirectory of the
> org.eclipse.birt.report.engine bundle doesn't work anymore. It worked in
> all BIRT version before. We supply two fonts in the fonts directory to
> be sure to have these fonts always available no matter which system
> fonts exist.
>
> The problem seems to be in the method "getEmbededFontPath" of class
> org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory:
>
> The call to
>
> Platform.getBundle("org.eclipse.birt.report.engine");
>
> returns null, so that not font directory is set and our font is not found.
>
> Any ideas how to resolve that without too much hassle? We cannot install
> our fonts on all platforms we support, so the fonts subdir was always a
> convenient way.
Re: Embedded fonts not found in BIRT 3.7.1 [message #975766 is a reply to message #973247] Thu, 08 November 2012 04:11 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1639
Registered: July 2009
Senior Member

You might take a look at this thread: http://www.eclipse.org/forums/index.php/m/648561/

It appears that the getBundle() call is a platform call that may only work with OSGi. This may be why it doesn't work with the POJO runtime.

You could also look at this thread: http://www.eclipse.org/forums/index.php/m/893803/

It talks about dealing with fonts with the POJO and OSGi runtimes.


Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Page Size ignored when exporting to PDF
Next Topic:Exception while using Birt Joint Dataset
Goto Forum:
  


Current Time: Fri Oct 31 20:57:47 GMT 2014

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

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