Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Spanish accent characters are not rendered properly(I have a swt based application which i'm trying to lolalize to spanish locale. But i'm having trobule with accent charecters. I render the text onto an image.)
Spanish accent characters are not rendered properly [message #635464] Tue, 26 October 2010 18:41 Go to next message
Eclipse UserFriend
Our GUI application is using swt version 3.346 and running on windows XP. We need to localize our app for different locales like Spanish, french and italian. The real problem is when we use accent characters they are not rendered properly. I see all of them as big zero. I have no clue if this is bug in swt or if i have some lack of understanding of the text rendering.

Heres a snippet of code that does the text rendering on a button.

if (!Tools.isLinux() && l.p.sombra) {
if (l.p.sombraFg!=null) gcS.setForeground(l.p.sombraFg);
if (l.p.sombraAntialias!=0) {
try {
if (Tools.isComplexGraphicsEnable())
gcS.setAntialias(l.p.sombraAntialias);
} catch (RuntimeException e) {
Tools.setComplexGraphicsEnable(false);
/** se pueden producir excepciones en algunos windows y en linux*/
}
}
if (l.p.sombraAlpha!=0) {
try {
if (Tools.isComplexGraphicsEnable())
gcS.setAlpha(l.p.sombraAlpha);
} catch (RuntimeException e) {
Tools.setComplexGraphicsEnable(false);
/** se pueden producir excepciones en algunos windows y en linux*/
}
}
gcS.drawText(l.p.text,px+l.p.sombraDx,py+l.p.sombraDy,l.p.tr ansparente);
}
if (l.p.fg!=null) gcS.setForeground(l.p.fg);
if (l.p.bg!=null) {
gcS.setForeground(l.p.bg);
gcS.drawRoundRectangle(myArea.x,myArea.y,myArea.width-1,myAr ea.height-1,10,10);
}
if (l.p.antialias!=0) {
try {
if (Tools.isComplexGraphicsEnable())
gcS.setAntialias(l.p.antialias);
} catch (RuntimeException e) {
Tools.setComplexGraphicsEnable(false);
/** se pueden producir excepciones en algunos windows y en linux*/
}
}
if (l.p.alpha!=0) {
try {
if (Tools.isComplexGraphicsEnable())
gcS.setAlpha(l.p.alpha);
} catch (RuntimeException e) {
Tools.setComplexGraphicsEnable(false);
/** se pueden producir excepciones en algunos windows y en linux*/
}
}

gcS.drawText(l.p.text,px,py,l.p.transparente);

Could this be a bug?

Any ideas or pointers are appreciated.

Thanks
kishore
Re: Spanish accent characters are not rendered properly [message #635938 is a reply to message #635464] Thu, 28 October 2010 12:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Can you please open a bug report under SWT so that it can be investigated --> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT
Please include a SWT snippet with sample text in the bug report.

Thanks,
Re: Spanish accent characters are not rendered properly [message #636163 is a reply to message #635938] Fri, 29 October 2010 09:55 Go to previous message
Eclipse UserFriend
I would first suggest trying a recent SWT/Eclipse release like 3.6.1 if
possible. There have been a lot of bug fixes between the version you're
using an more recent ones.

Grant


"Lakshmi Shanmugam" <lshanmug@in.ibm.com> wrote in message
news:iac6n7$s7d$1@news.eclipse.org...
> Hi,
>
> Can you please open a bug report under SWT so that it can be
> investigated -->
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT
> Please include a SWT snippet with sample text in the bug report.
>
> Thanks,
>
> --
> Lakshmi P Shanmugam
Previous Topic:SWT commercial components to recommend ? (charts, grids ....)
Next Topic:Context menu problems in Windows 7 and Linux
Goto Forum:
  


Current Time: Sat Jul 05 03:49:39 EDT 2025

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

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

Back to the top