Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1878
Rendering of monospace fonts in UltraFormattedTextEditor
posted

Hi,

I'm using UltraFormattedTextEditor to display the mail content for order details that will be sent to the customer in a plain text Email. The aligning of text is done by simply inserting blanks. Although I'm using monospace fonts there are some inaccuracies in the aligning of the characters when they are displayed in UltraFormattedTextEditor as depicted in picture below:

I tried it with both the font 'Courier New' and 'Consolas' with different font sizes but the problem always appears. Of course I set the property 'UseAppStyling' to false. When I copy and paste the text from the control to a text editor the aligning is fine and also when I finally send the Email, open it in my mail client after receiving it looks fine. I tried the RichTextBox control from MS and that also showed it correctly but since I'm using UltraGridBagLayoutManager I cannot use this control. I've attached the text as copied out from UltraFormattedTextEditor so that you can examine this as well.

Is there any property to be set or another control to be recommended? Btw. I gave UltraTextEditor control a try but it seems to have same problems :-(

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I copied and pasted the text from the file you attached here into an UltraFormattedTextEditor with it's font set to Courier New and I see the same problem. This appears to be a bug in the control.

    It tried this with the inbox TextBox control and it works correctly.

    Then I tried it with the UltraTextEditor control and it also works fine there. So this appears to be a bug in the UltraFormattedTextEditor.

    I am going to forward this thread over to Infragistics Developer Support so they can check it out and get it corrected.

     

     

Children