Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:41 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: October 2010
Junior Member
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 16:04 Go to previous messageGo to next message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
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
Re: Spanish accent characters are not rendered properly [message #636163 is a reply to message #635938] Fri, 29 October 2010 13:55 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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: Tue Mar 19 10:15:38 GMT 2024

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

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

Back to the top