Skip to main content



      Home
Home » Archived » BIRT » Chart internationalization with PNG
Chart internationalization with PNG [message #246892] Mon, 09 July 2007 06:10 Go to next message
Eclipse UserFriend
Originally posted by: MCIPRIA1.it.ibm.com

This is a multipart message in MIME format.
--=_related 0037E31DC1257313_=
Content-Type: multipart/alternative; boundary="=_alternative 0037E31DC1257313_="


--=_alternative 0037E31DC1257313_=
Content-Type: text/plain; charset="US-ASCII"

Hi,
I'm using Birt 2.1.2, and I'm havong same problme with
internationalization of charts. In chinese, I have a resource with value
"status=\u5341\u5341 Status" (unicode), but rendering it this is the
result


The label on the bottom in a dynamic text with value
reportContext.getMessage("status",reportContext.getLocale()). The locale
is zh, I set that on the windows preference, and as a consequence the
bottom text is correctly shown, but in the chart (png) the chars are
scrambled.
Any suggestion?
Thanks!
--=_alternative 0037E31DC1257313_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">I'm using Birt 2.1.2, and I'm havong
same problme with internationalization of charts. In chinese, I have a
resource with value &nbsp;&quot;status=</font><font size=2 face="Courier New">\u5341\u5341
Status&quot; </font><font size=2>(unicode), but rendering it this is the
result</font>
<br><img src=cid:_1_05AE259C05AE22CC0037E31DC1257313>
<br>
<br><font size=2>The label on the bottom in a dynamic text with value </font><font size=1 face="Tahoma">reportContext.getMessage(</font><font size=1 color=#4200ff face="Tahoma">&quot;status&quot;</font><font size=1 face="Tahoma">,reportContext.getLocale())</font><font size=2>.
The locale is zh, I set that on the windows preference, and as a consequence
the bottom text is correctly shown, but in the chart (png) the chars are
scrambled.</font>
<br><font size=2>Any suggestion?</font>
<br><font size=2>Thanks!</font>
--=_alternative 0037E31DC1257313_=--
--=_related 0037E31DC1257313_=
Content-Type: image/gif
Content-ID: <_1_05AE259C05AE22CC0037E31DC1257313>
Content-Transfer-Encoding: base64

R0lGODlhugCzAOcAAP///0iIeODg4LBAOAAAAPDw8Ojo6Ojw8ND4+Pjw8PD4 +PDg4PjouPDo6OD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1++ +La0ytUXe/k7nIHc
lzdAEC7HCNzeatU2Ny9ogLk2RmHy8kW0tiHXhivI4OUoKwEjrtmCCwzDEru3 ivzl4orF91RyDrDG
YJyxelq4zIQor1VAbpXyekzkIhv5yEhOctqGmEYlN4TJTGaAxFzyIiAaxMpd pBKQtOwjEYGIIP+i
cphdsoIxc8CJTjyYwK4IZYdsSDOJQPyAj+D8ZTT38AhKzGKbE+KigTCRRADo c6DhDOgcDiyJCKAC
FanQISvu2cmQjnRfAgIAOw==
--=_related 0037E31DC1257313_=--
Re: Chart internationalization with PNG [message #246908 is a reply to message #246892] Mon, 09 July 2007 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MCIPRIA1.it.ibm.com

This is a multipart message in MIME format.
--=_alternative 003BEBE7C1257313_=
Content-Type: text/plain; charset="US-ASCII"

Well, I tried to change the font to Serif and now it works. My previous
font was Verdana. This doesn't seem to be a Birt problem at all!
Anyway, any idea on how to resolve the problem? (I must use Verdana font)
Thank you very much.
--=_alternative 003BEBE7C1257313_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Well, I tried to change the font to
Serif and now it works. My previous font was Verdana. This doesn't seem
to be a Birt problem at all! </font>
<br><font size=2 face="sans-serif">Anyway, any idea on how to resolve the
problem? (I must use Verdana font)</font>
<br><font size=2 face="sans-serif">Thank you very much.</font>
--=_alternative 003BEBE7C1257313_=--
Re: Chart internationalization with PNG [message #246913 is a reply to message #246908] Mon, 09 July 2007 07:52 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C7C230.6AC67C00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Check out swing java font settings on your system. The PNG chart fonts =
are rendered with swing. You need to use a supported font.

Thanks,

David
<MCIPRIA1@it.ibm.com> wrote in message =
news:f6t451$2ti$1@build.eclipse.org...

Well, I tried to change the font to Serif and now it works. My =
previous font was Verdana. This doesn't seem to be a Birt problem at =
all!=20
Anyway, any idea on how to resolve the problem? (I must use Verdana =
font)=20
Thank you very much.
------=_NextPart_000_000B_01C7C230.6AC67C00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Check out swing java font settings on =
your system.=20
The PNG chart fonts are rendered with swing. You need to use a supported =

font.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>David</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>&lt;<A =
href=3D"mailto:MCIPRIA1@it.ibm.com">MCIPRIA1@it.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:f6t451$2ti$1@build.eclipse.org">news:f6t451$2ti$1@build.ecli=
pse.org</A>...</DIV><BR><FONT=20
face=3Dsans-serif size=3D2>Well, I tried to change the font to Serif =
and now it=20
works. My previous font was Verdana. This doesn't seem to be a Birt =
problem at=20
all! </FONT><BR><FONT face=3Dsans-serif size=3D2>Anyway, any idea on =
how to=20
resolve the problem? (I must use Verdana font)</FONT> <BR><FONT=20
face=3Dsans-serif size=3D2>Thank you very =
much.</FONT></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000B_01C7C230.6AC67C00--
Re: Chart internationalization with PNG [message #246950 is a reply to message #246913] Mon, 09 July 2007 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MCIPRIA1.it.ibm.com

This is a multipart message in MIME format.
--=_alternative 004F19B3C1257313_=
Content-Type: text/plain; charset="US-ASCII"

Thank for your help. I'm trying to apply your suggestion, but I cannot
find a way to make chart engine to use the Verdana font. Where do I have
to put the font library exactly? Are you referring to the .ttf font file?
I'm working with WebSphere 6.1, and I tired to put it in the jre/lib/font
dir but without success. I also tried to debug the chart engine source
code (getCaption on the label Impl), but the String object is always
correctly translated. Where exactly happens the swing transformation for
png rendering (in order to debug it deeper)?
Thank you very much!
--=_alternative 004F19B3C1257313_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Thank for your help. I'm trying to apply
your suggestion, but I cannot find a way to make chart engine to use the
Verdana font. Where do I have to put the font library exactly? Are you
referring to the .ttf font file? I'm working with WebSphere 6.1, and I
tired to put it in the jre/lib/font dir but without success. I also tried
to debug the chart engine source code (getCaption on the label Impl), but
the String object is always correctly translated. Where exactly happens
the swing transformation for png rendering (in order to debug it deeper)?</font>
<br><font size=2 face="sans-serif">Thank you very much!</font>
--=_alternative 004F19B3C1257313_=--
Re: Chart internationalization with PNG [message #246975 is a reply to message #246950] Mon, 09 July 2007 12:27 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_0056_01C7C256.CF574ED0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

This is a java configuration problem. See this documentation from Sun:

http://java.sun.com/javase/technologies/core/basic/intl/faq. jsp#cjk-font-=
problem

If you use the IBM JDK, you will need to check their documentation, =
there should be some similar configuration settings.

Thanks,

David
<MCIPRIA1@it.ibm.com> wrote in message =
news:f6tgdo$91f$1@build.eclipse.org...

Thank for your help. I'm trying to apply your suggestion, but I cannot =
find a way to make chart engine to use the Verdana font. Where do I have =
to put the font library exactly? Are you referring to the .ttf font =
file? I'm working with WebSphere 6.1, and I tired to put it in the =
jre/lib/font dir but without success. I also tried to debug the chart =
engine source code (getCaption on the label Impl), but the String object =
is always correctly translated. Where exactly happens the swing =
transformation for png rendering (in order to debug it deeper)?=20
Thank you very much!
------=_NextPart_000_0056_01C7C256.CF574ED0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>This is a java configuration problem. =
See this=20
documentation from Sun:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D" http://java.sun.com/javase/technologies/core/basic/intl/faq. jsp#c=
jk-font-problem">http://java.sun.com/javase/technologies/core/basic/intl/=
faq.jsp#cjk-font-problem</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If you use the IBM JDK, you will need =
to check=20
their documentation, there should be some similar configuration=20
settings.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>David</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>&lt;<A =
href=3D"mailto:MCIPRIA1@it.ibm.com">MCIPRIA1@it.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:f6tgdo$91f$1@build.eclipse.org">news:f6tgdo$91f$1@build.ecli=
pse.org</A>...</DIV><BR><FONT=20
face=3Dsans-serif size=3D2>Thank for your help. I'm trying to apply =
your=20
suggestion, but I cannot find a way to make chart engine to use the =
Verdana=20
font. Where do I have to put the font library exactly? Are you =
referring to=20
the .ttf font file? I'm working with WebSphere 6.1, and I tired to put =
it in=20
the jre/lib/font dir but without success. I also tried to debug the =
chart=20
engine source code (getCaption on the label Impl), but the String =
object is=20
always correctly translated. Where exactly happens the swing =
transformation=20
for png rendering (in order to debug it deeper)?</FONT> <BR><FONT=20
face=3Dsans-serif size=3D2>Thank you very =
much!</FONT></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0056_01C7C256.CF574ED0--
Previous Topic:Error starting second Eclipse instance to test my ODA Runtime Driver
Next Topic:Birt 2.1.2, PDF output problem
Goto Forum:
  


Current Time: Mon Jul 07 18:19:23 EDT 2025

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

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

Back to the top