Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Does the diagram support Arabic language? (Read 4321 times)
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Does the diagram support Arabic language?
Feb 27th, 2012 at 12:34pm
Print Post  
Seems that the diagram doesn't support Arabic Language, right?

It renders the Arabic text from left to right instead of right to left, with the knowledge that it renders every work correctly.

In the attached a snapshot.. Any suggestion?
  

Untitled_003.png ( 213 KB | 315 Downloads )
Untitled_003.png
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Does the diagram support Arabic language?
Reply #1 - Feb 27th, 2012 at 12:42pm
Print Post  
Have you tried setting the DirectionRightToLeft bit in node.TextFormat.FormatFlags?
  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: Does the diagram support Arabic language?
Reply #2 - Oct 1st, 2012 at 7:48am
Print Post  
Yes, I have and it's the same. Any suggestion?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Does the diagram support Arabic language?
Reply #3 - Oct 2nd, 2012 at 6:15am
Print Post  
I think it's shown in the correct order after setting the DirectionRightToLeft flag:

  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: Does the diagram support Arabic language?
Reply #4 - Oct 3rd, 2012 at 12:16pm
Print Post  
That seems to be true only in some kind of nodes. In the attached, the same string has been written to a ShapeNode and a ContainerNode. Only the ContainerNode is showing it correctly.

Please check it.
  

1Capture.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Does the diagram support Arabic language?
Reply #5 - Oct 4th, 2012 at 6:19am
Print Post  
I can see the sentence appears reversed with the EnableStyledText property of ShapeNodes enabled, so try setting it to false. I suppose we have never implemented right-to-left support in our text formatting algorithm used with styled text. With that feature disabled, the nodes draw text using the GDI+ DrawString methods which should work correctly.
  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: Does the diagram support Arabic language?
Reply #6 - Oct 4th, 2012 at 7:51am
Print Post  
I haven't changed it. It's already false for both the diagram and the nodes - I checked them both.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Does the diagram support Arabic language?
Reply #7 - Oct 4th, 2012 at 8:40am
Print Post  
Try disabling the PolygonalTextLayout property, it runs the same text layout algorithm of ours. If it still doesn't work, check if there isn't some code changing the StringFormat.FormatFlags value later on.
  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: Does the diagram support Arabic language?
Reply #8 - Oct 8th, 2012 at 9:24am
Print Post  
Disabling PolygonalTextLayout solved the problem.

Thank you Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint