I am facing a trivial yet critical matter concerning labels showing arabic text I dont know how to fix it.
So could you please help me?
I am facing a trivial yet critical matter concerning labels showing arabic text I dont know how to fix it.
So could you please help me?
Please i need a soon reply cause I had tried arabic text and it was displayed correctly in any pop up windows as wll as in the legend but still it is not shown correctly in the labels.
attached is a snap shot of what is happening
Hi ahmed,
Thanks for your question but sorry that I'm not 100% clear about your problem "Arabic Label", can you give us more details on it, such as where you want to display, how you did in your application now etc. So that we can determine the problem exactly.
As far as I guessed, i think the problem should be how to display "Arabic Label" with FeatureLayer? If that's the case, please try the code as following, it works fine for me.
InMemoryFeatureLayer inMemoryFeatureLayer = new InMemoryFeatureLayer();
inMemoryFeatureLayer.Columns.Add(new FeatureSourceColumn("Text"));
Feature feature = new Feature(new PointShape(0, 0));
feature.ColumnValues.Add("Text", "الجامعة");
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Capital1("Text");
Following is the screenshot we got :
Thanks,
Johnny
Dear Johnny
Thanks for your reply, I am facing this problem will loading a shape file or loading a Geodatabase. I don’t know what is its cause since the Arabic text is shown normally in the legend and in the identifier popup.
here is the code I am using and attached is the used shape file
private void load_street(string path, string name)
{
ShapeFileFeatureLayer sfl = new ShapeFileFeatureLayer(path);
sfl.Encoding = Encoding.GetEncoding(1256);
create_idx(sfl);
sfl.ZoomLevelSet.ZoomLevel10.DefaultLineStyle = LineStyles.MajorRoad1;
sfl.ZoomLevelSet.ZoomLevel10.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
sfl.Name = name;
Map1.StaticOverlay.Layers.Add(name, sfl);
ShapeFileFeatureLayer sfl1 = new ShapeFileFeatureLayer(path);
sfl1.Encoding = Encoding.GetEncoding(1256);
sfl1.ZoomLevelSet.ZoomLevel10.DefaultTextStyle = TextStyles.LocalRoad1(“ANAME”);
sfl1.ZoomLevelSet.ZoomLevel10.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Map1.DynamicOverlay.Layers.Add(name+" label", sfl1);
LegendAdornmentLayer ladlayer = (LegendAdornmentLayer)Map1.AdornmentOverlay.Layers[“Lengend”]; ;
LegendItem legendItem = new LegendItem();
legendItem.ImageStyle = LineStyles.MajorRoad1;
legendItem.TextStyle = new TextStyle(name, new GeoFont(“Arial”, 8), new GeoSolidBrush(GeoColor.SimpleColors.Black));
ladlayer.LegendItems.Add(legendItem);
}
Street_Test.zip (22.2 KB)
ahmed,
Thanks for your demo, but seems that it works fine on our end, we tried both the Chrome and Firefox. Following is the scrrenshot we got, and the attached is the demo we used for test, please check it out.
I was wondering that maybe it's caused by some differences between our test machine and yours, could you check your computer's configuration, such as version of OS, related information, "Region and Language" which can be found in "Control Panel", expecially the setting on "Fomats", "Location" etc of your development computer. Anyway, please try the attached demo at first. and any questions please let me know.
Thanks,
Johnny
post_11112.zip (746 KB)
Dear johnny
thanks for your support; the problem is solved by changing the "system locale" in the "Region and Language setting" - "Administrative" tab to English US and this solved the issue
Hi ahmed,
Glad to hear that it work for you, It’s proved to be a bug which has been fixed now, in other words, after getting the latest version 6.0.312.0 or 6.0.0.312 or later, it should works fine even if you don’t change to English US.
Hope everything goes well with you.
Thanks,
Johnny
Dear johnny
Thanks for your support and I am wandering where can I get the latest release?
Hi ahmed,
The latest “Production” or “Development” version can be available at helpdesk.thinkgeo.com/ , please login it with your own account applied on our website. After login the portal , you will find there are ready for you to download.
Please try it out and feel free to let us know if any problem.
Thanks,
Johnny