Arabic labels are rendered correctly in gt-2.5.2... the problem appears only in 
gt-2.5.1

--- On Mon, 1/19/09, Ahmad Al-Obaidy <[email protected]> wrote:

From: Ahmad Al-Obaidy <[email protected]>
Subject: Re: [Geoserver-devel] Problem in Rendering Arabic Labels
To: "Justin Deoliveira" <[email protected]>
Cc: [email protected], "Andrea Aime" <[email protected]>
Date: Monday, January 19, 2009, 5:07 PM

to be accurate, I am using gt-2.5 not geoserver

--- On Sun, 1/18/09, Justin Deoliveira <[email protected]> wrote:

From: Justin Deoliveira <[email protected]>
Subject: Re: [Geoserver-devel] Problem in Rendering Arabic Labels
To: "Ahmad Al-Obaidy" <[email protected]>
Cc: [email protected], "Andrea Aime" <[email protected]>
Date: Sunday, January 18, 2009, 12:21 AM

Actually maybe it is not the new labeller... I believe it is only the default 
in the up coming 1.7.2 release. Regardless... andrea should be able to better 
comment.

-Justin

Ahmad Al-Obaidy wrote:
> I don't really know about the new labeler, but the old one was able
 to render arabic labels correctly...
> 
> There is good case, and sample shape file in 
> http://jira.codehaus.org/browse/GEOS-1369
> 
> --- On *Sat, 1/17/09, Justin Deoliveira /<[email protected]>/* wrote:
> 
> 
>     From: Justin Deoliveira <[email protected]>
>     Subject: Re: [Geoserver-devel] Problem in Rendering Arabic Labels
>     To: "Ahmad Al-Obaidy" <[email protected]>
>     Cc: "Andrea Aime" <[email protected]>,
>     [email protected]
>     Date: Saturday, January 17, 2009, 12:50 AM
> 
>     Hmmm... I wonder if this is a regression that has come out of using
>     the new labeler?
> 
>     Ahmad Al-Obaidy wrote:
>      > The bug seems to exists again in the gt-2.5 :(
>      >
>      > --- On *Mon, 10/8/07, Andrea Aime /<[email protected]
>     </mc/[email protected]>>/* wrote:
>      >
>      >
>      >     From: Andrea Aime <[email protected]
>     </mc/[email protected]>>
>      >     Subject: Re: [Geoserver-devel] Problem in Rendering Arabic Labels
>      >     To: "Ahmad Al-Obaidy" <[email protected]
>     </mc/[email protected]>>
>      >     Cc: [email protected]
>     </mc/[email protected]>
>      >     Date: Monday, October 8, 2007, 7:57 PM
>      >
>      >     Ahmad Al-Obaidy ha scritto:
>      >      > Hi Andrea,
>      >      > Thank you for being interested...
>      >      >
>   
   >      > I can gratefully provide sample data, the expected output and
>      >     test any patch....
>      >      >
>      >      > And even try to fix it out with some help
>      >      >
>      >      > As for the problem, I think it came from the Geotools
>     LiteRenderer...
>      >      >
>      >      > I tried to hack the code... And it seems LiteRenderer is using
>      >     Graphics2D for rendering maps...
>      >      > I tested the Graphics2D and it work just fine with Arabic text
>   
   >     using drawString...
>      >      >
>      >      > I didn't figure out the code responsible for draw
>     labels... but
>      >     what I had conclude is LiteRenderer is rendering each letter
>      >     separately... and this bring the problem in...
>      >      >
>      >      > Because Arabic text is written in script manner and from
>     right to
>      >     left rather than in separate manner and left to right like Latin
>      >     alphabets...
>      >
>      > 
    Ahmad,
>      >     in GeoTools we cannot use drawString directly because we need
>     a set
>      >     of informations that only GlyphVector can provide (we use
>     them to draw
>      >     halos, and to perform label collision detection and avoidance).
>      >     The method we were using so far to build worked for most
>     fonts, but
>      >     not for Arabic and a few others. I tried to fix it without
>     giving up
>      >     too much performance in the western case, but I'm not sure
>     about the
>     
 >     results.
>      >
>      >     Can you have a look at
>      >     http://jira.codehaus.org/secure/attachment/29786/arabic.png
>     (attached to
>      >     http://jira.codehaus.org/browse/GEOS-1369) and tell me if
>     this is fine?
>      >
>      >     Cheers
>      >     Andrea
>      >
>      >
>      >
> 
    ------------------------------------------------------------------------
>      >
>      >
>     
>------------------------------------------------------------------------------
>      > This SF.net email is sponsored by:
>      > SourcForge Community
>      > SourceForge wants to tell your story.
>      > http://p.sf.net/sfu/sf-spreadtheword
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Geoserver-devel
 mailing list
>      > [email protected]
>     </mc/[email protected]>
>      > https://lists.sourceforge.net/lists/listinfo/geoserver-devel
> 
> 
>     -- Justin Deoliveira
>     OpenGeo - http://opengeo.org
>     Enterprise support for open source geospatial.
> 
> 
>
 ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel


-- Justin
 Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

-----Inline Attachment Follows-----

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
-----Inline Attachment Follows-----

_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to