Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Charts Fonts Rendered as Italic in PDF and DOC Format
THBG
Hi,
I'm facing strange font behaviour.
In a report all fonts belonging to charts suddenly turned as italic without reason (it worked correctly for some time before). Of course they are not italic into orginal report in Eclipse, neither when viewing preview. But once uploaded on my Red Hat server they render as italic.
I tried without success :
- to recreate the report
- to test with 3.7.2, 4.2.1 and 4.2.2 Birt viewer
- to recreate font cache on server
This seems to happen in PDF and DOC rendering and not in HTML.
Does anyone have suggestion please ?
Thanks
Tom
Find more posts tagged with
Comments
kclark
Is this only happening in the redhat environment? Can you test this is a virtual machine or on a windows machine to try and recreate the results?
THBG
Thanks for your reply.
I'll try on another server and/or OS.
Tom
THBG
Hello,
I tested report on Tomcat on another RedHat server and I don't get such behaviour.
So my problem is clearly linked to local server and/or local tomcat instance, not Birt.
Tom.
kclark
It might be a font issue? You might want to get a list of the installed fonts on the RH machine that it worked correctly on and compare it to what you have installed on the environment that isn't working correctly.<br />
<br />
For all installed fonts you could do something like<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>ls /usr/share/fonts/
ls /usr/share/X11/fonts/</pre>
<br />
or<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>xlsfonts "*" | less
fc-list | less</pre>
<br />
You could also try changing the font with something like<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>label.getCaption().getFont().setBold(true);
label.getCaption().getFont().setSize(14);
label.getCaption().getFont().setName("Arial");</pre>
THBG
Thanks for your suggestions.
I checked fonts on both servers without finding any differences.
I'm not sufficiently skilled to tweak code. I'll have to let this as is.
Thanks anyway.
Tom