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 :-(