Right to Left Text Alignment

6 posts, 0 answers
  1. Adel
    Adel avatar
    3 posts
    Member since:
    Feb 2014

    Posted 08 Feb 2014 Link to this post

    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?
  2. Svetoslav
    Admin
    Svetoslav avatar
    55 posts

    Posted 12 Feb 2014 Link to this post

    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).

  3. UI for WPF is Visual Studio 2017 Ready
  4. Adel
    Adel avatar
    3 posts
    Member since:
    Feb 2014

    Posted 14 Feb 2014 Link to this post

    Hello Svetoslav,
    I tried your reply, but nothing changed...!
    I'm sorry, but can you Help me more
    Thank you.
  5. Svetoslav
    Admin
    Svetoslav avatar
    55 posts

    Posted 19 Feb 2014 Link to this post

    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
  6. jafar
    jafar avatar
    9 posts
    Member since:
    Feb 2013

    Posted 21 Sep 2014 in reply to Svetoslav Link to this post

    Hello 
    Is "TextRenderingMode" property in the version 2014.2.617.1050 ?
    thanks


  7. Petya
    Admin
    Petya avatar
    975 posts

    Posted 23 Sep 2014 Link to this post

    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.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready