Skip to main content



      Home
Home » Archived » BIRT » display chinese characters on birt chart on linux
display chinese characters on birt chart on linux [message #669655] Tue, 10 May 2011 23:59 Go to next message
Eclipse UserFriend
We designed an Birt report in eclipse with chinese characters from database and chart title/labels in chinese. Preview in eclipse is successful on windows. When running the report design in our web application that embeds birt runtime, it works well on windows. But on linux(Fedora Core 14), all chinese characters are shown as small square boxes on birt chart.

For running swing application on the same linux (FC 14) machine, we first find the font that can display chinese characters using Font.canDisplayUpTo(String), then component.setFont(font).

Is there an API to set font for rendering string on the birt chart? (for web application that embeds birt runtime)

I expect to see:
HTMLRenderOption.setFont(font)

thanks very much.
Dave
Re: display chinese characters on birt chart on linux [message #669812 is a reply to message #669655] Wed, 11 May 2011 11:17 Go to previous messageGo to next message
Eclipse UserFriend
Dave,

Can you look at these bugs and see if they help?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=206010
https://bugs.eclipse.org/bugs/show_bug.cgi?id=122308
https://bugs.eclipse.org/bugs/show_bug.cgi?id=255964

Jason

On 5/10/2011 11:59 PM, Dave wrote:
> We designed an Birt report in eclipse with chinese
> characters from database and chart title/labels in chinese.
> Preview in eclipse is successful on windows. When running
> the report design in our web application that embeds birt
> runtime, it works well on windows. But on linux(Fedora Core
> 14), all chinese characters are shown as small square boxes
> on birt chart.
>
> For running swing application on the same linux (FC 14)
> machine, we first find the font that can display chinese
> characters using Font.canDisplayUpTo(String), then
> component.setFont(font).
>
> Is there an API to set font for rendering string on the birt
> chart? (for web application that embeds birt runtime)
>
> I expect to see:
> HTMLRenderOption.setFont(font)
>
> thanks very much.
> Dave
Re: display chinese characters on birt chart on linux [message #670507 is a reply to message #669812] Sat, 14 May 2011 11:08 Go to previous message
Eclipse UserFriend
Hi Jason,
Thanks for reply. I followed the second link, the issue solved after
changing fontconfig.properties to match the fonts installed on linux.

Dave
Previous Topic:BIRT Report Viewer
Next Topic:Free open source ad-hoc querying in the BIRT?
Goto Forum:
  


Current Time: Thu Jul 10 10:39:54 EDT 2025

Powered by FUDForum. Page generated in 0.07951 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top