Skip to main content



      Home
Home » Archived » 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 01:59 Go to next message
Eclipse UserFriend
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 02:06 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 07 November 2012 23:11 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Page Size ignored when exporting to PDF
Next Topic:Exception while using Birt Joint Dataset
Goto Forum:
  


Current Time: Wed Jul 23 01:16:13 EDT 2025

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

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

Back to the top