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.

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.