Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » display chinese characters on birt chart on linux
display chinese characters on birt chart on linux [message #669655] Wed, 11 May 2011 03:59 Go to next message
Dave Missing name is currently offline Dave Missing nameFriend
Messages: 20
Registered: October 2010
Junior Member
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 15:17 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 15:08 Go to previous message
Dave Missing name is currently offline Dave Missing nameFriend
Messages: 20
Registered: October 2010
Junior Member
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: Sat Apr 20 02:41:25 GMT 2024

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

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

Back to the top