Hi
I have problem with polish letters in my custom app which is using Birt runtime in version: 4.6.0-20160607
Dependency from pom.xml:
<dependency>
<groupId>org.eclipse.birt.runtime</groupId>
<artifactId>org.eclipse.birt.runtime</artifactId>
<version>4.6.0-20160607</version>
</dependency>
Issue reveals it self by replacing our national letters with their ascii equivalents, and so ą becomes a, ł becomes l, ę -> e and so on
But in designer which is in version: Eclipse BIRT Designer Version 4.6.0.v201606072122 (at least i have this version in properties tab - "Create by" textbox) everything is fine, i mean that report rendered in html or pdf from Eclipse contains our international letters :)
You can see followed attachments to make it bit clear:
- birt-designer.png - this is screenshot form designer
- birt-viewer.png - this is screenshot form webviewer, contains our national letters
- birt-viewer-pdf.png - this is screenshot from webviewer but report has been exported to pdf
- birt-from-app.png - athis is screenshot from our custom app, look where arrow points -> no national letters :)
I set same paths to system fonts in our app and in BIRT Designer runtime fontsConfig_pdf (in eclipse plugin directory) like follows:
My app
URL url = this.getClass().getResource("/birt/fontsConfig.xml");
// Konfiguracja czcionek
config.setFontConfig(url);
/birt/fontsConfig.xml
<?xml version="1.0" encoding="UTF-8"?>
<font>
<font-aliases>
<mapping name="serif" font-family="Arial" />
<mapping name="sans-serif" font-family="Courier" />
<mapping name="monospace" font-family="Helvetica" />
<mapping name="cursive" font-family="Courier" />
<mapping name="fantasy" font-family="Courier" />
</font-aliases>
<composite-font name="all-fonts" default="Arial">
</composite-font>
<font-paths>
<path path="/usr/share/fonts/msttcore" />
</font-paths>
<font-encodings>
<encoding font-family="Arial" encoding="cp1250" />
<encoding font-family="Courier" encoding="cp1250" />
<encoding font-family="Helvetica" encoding="cp1250" />
</font-encodings>
</font>
Birt Eclipse
[dev@dev plugins]$ grep -R msttcore *
org.eclipse.birt.report.engine.fonts_4.4.2.v201410272105/fontsConfig_pdf.xml: <path path="/usr/share/fonts/msttcore" />
org.eclipse.birt.report.engine.fonts_4.6.0.v201606072122/fontsConfig_pdf.xml: <path path="/usr/share/fonts/msttcore" />
My platform is linux (centos) i'm using jdk 1.8 to run our app server and Eclipse BIRT Report Designer
[Updated on: Fri, 14 September 2018 12:08] by Moderator