Home
Analytics
Birt Viewer won't find proper fonts for charts under linux
Garey
I have a report that has Arial selected for the axis inside a chart. When previewed within the BIRT designer under windows everything works correctly. When I transfer it to a Linux box running BIRT viewer (2.6.2) the fonts are always rendered as Courier.
Note that I've already been through modifying the
./WEB-INF/platform/plugins/org.eclipse.birt.report.engine.fonts_2.6.2.r262_v20110127/fontsConfig.xml
and
./WEB-INF/platform/plugins/org.eclipse.birt.report.engine.fonts_2.6.2.r262_v20110127/fontsConfig_linux.xml
files. I also turned on logger to "ALL" and can see from the log that the proper font directories are being read. The "arial.ttf" file also exists and can be view by gnome-font-viewer correctly and displaied all the font files info.
Viewer Version : 2.6.2
Engine Version: 2.6.2
JRE version: 1.6.0
Any ideas would be great.
Find more posts tagged with
Comments
JasonW
Did you try adding a font path directly to the font like:
<path path="/usr/X11R6/lib/X11/fonts/TTF/arial.ttf"/> Also try a format of pdf and see if the arial font comes through.
Jason
sonic777
Hi Garey
I have on 64 bit RedHat6 installed .
And same things happened.
I found this .
http://java.sun.com/j2se/1.5.0/relnotes.html
> Because several Red Hat Linux versions do not have a TrueType font for JIS X 0201 by default, the font configuration files for these versions do not include any definition for JIS X 0201. The workaround is to install a TrueType JIS X 0201 font into the J2RE's lib/fonts/fallback directory.
$ mkdir {JRE_HOME}}/lib/fonts/fallback
$ cd {JRE_HOME}}/lib/fonts/fallback
$ ln -sf /usr/share/fonts/TTF/arial.ttf
Tomcat restart
I could select the font.
I hope to help you.