This is a migrated thread and some comments may be shown as answers.

Right to Left Text Alignment

5 Answers 237 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Adel
Top achievements
Rank 1
Adel asked on 08 Feb 2014, 07:28 PM
Hi, When I change my text direction in Telerik Editor, something was wrong! In rtl languages (like Farsi) dot is Not in its position! but in MS Word everything is good.
How can i solve it?

5 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 12 Feb 2014, 12:51 PM
Hello Adel,

Thanks for the clarifications.

This issue is consequence of the fact that we have changed the rendering mechanism and currently Direct2D is used which is faster but causes some issues with Arabic language. As a workaround I would suggest you to set DefaultTextRenderingMode property to TextBlockWithPropertyCaching (as opposed to the new rendering mode Direct2D) and use it until a fix available.

RadRichTextBox.DefaultTextRenderingMode = Telerik.Windows.Documents.UI.TextBlocks.TextBlockRenderingMode.TextBlockWithPropertyCaching;

I hope this helps. Don't hesitate to contact us if you have other questions.

Regards,
Svetoslav
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Adel
Top achievements
Rank 1
answered on 14 Feb 2014, 04:28 PM
Hello Svetoslav,
I tried your reply, but nothing changed...!
I'm sorry, but can you Help me more
Thank you.
0
Svetoslav
Telerik team
answered on 19 Feb 2014, 01:17 PM
Hello Adel,

Thank you for contacting us!

Let me get straight to the question. In this scenario we are using static class RadRichTextBox which is global for all RadRichTextBoxes that you use in your application. In order to make this work as expected you need to set the property before the RadRichTextBox is initialized. If you need to set the property only for particular RadRichTextBox you can use this code snippet:

this.radRichTextBox.TextRenderingMode = Telerik.Windows.Documents.UI.TextBlocks.TextBlockRenderingMode.TextBlockWithPropertyCaching;
Be aware that this property needs to be set after RadRichTextBox is initialized.

I hope this helps! Let us know if you need any further assistance.

Regards,
Svetoslav
Telerik
0
jafar
Top achievements
Rank 1
answered on 21 Sep 2014, 08:05 AM
Hello 
Is "TextRenderingMode" property in the version 2014.2.617.1050 ?
thanks


0
Petya
Telerik team
answered on 23 Sep 2014, 10:48 AM
Hi Jafar,

The property is available as of Q3 2013 (2013.3 1016). Please note that the property has the EditorBrowsableAttribute set with value for the state Advanced, which may cause it to not be accessible  through Visual Studio's IntelliSense engine.

I hope this is useful.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
RichTextBox
Asked by
Adel
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Adel
Top achievements
Rank 1
jafar
Top achievements
Rank 1
Petya
Telerik team
Share this question
or