The goal
I wanted to use greek locale in a BIRT report design; i.e. foo.rptdesign:
...
<property name="locale">el</property>
...
The problem
Error when opening pdf with acroread (evince doesn't properly shows greek fonts but english fonts are ok!):
The Traditional Chinese Language Support Package is required to display
this page properly. Under the current configuration, this resource is not
available. You can download it from http://www.adobe.com/go/acroasianfontpack
On console I get the following output:
org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run
register fonts in /usr/openwin/lib/locale/ja/X11/fonts/TT cost:0ms
org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run
register fonts in /usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType cost:0ms
org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run
register fonts in /usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType cost:0ms
...
register fonts in /usr/share/fonts/zh_CN/TrueType cost:0ms
...
register fonts in /usr/X11R6/lib/X11/fonts/OTF cost:0ms
...
I.e. BIRT registers the following paths to scan for the fonts:
- /user/openwin/lib/locale/
- /usr/share/fonts/
- etc
The Solution
When I installed the Microsoft True Type Core Font for the Web everything the greek (unicode) fonts were fine:
$ sudo apt-get install ttf-mscorefonts-installer
The fonts are installed in /usr/share/fonts/truetype/msttcorefonts/
Hint:If you use BIRT in Tomcat (or another server) restart server after the ttf-mscorefonts-installer installation!
No comments:
Post a Comment