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

How to line up english message in chat bubble

2 Answers 62 Views
Conversational UI, Chat
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 25 Nov 2020, 07:02 AM

How to line up english message in chat bubble

Hello, ChatBubble has problem.

ex)

(e.ItemElement as TextMessageItemElement).MainMessageElement.TextAlignment = ContentAlignment.MiddleLeft;
(e.ItemElement as TextMessageItemElement).MainMessageElement.UseCompatibleTextRendering = false;

When UseCompatibleTextRendering's value is false, english Line spacing fails.

But another language line spacing successes.

So, How to line spacing english? I want to solve it.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Kim
Top achievements
Rank 1
answered on 25 Nov 2020, 07:03 AM
Image attached. 
0
Nadya | Tech Support Engineer
Telerik team
answered on 25 Nov 2020, 04:17 PM

Hello, Kim,

By default, the Telerik Presentation Framework uses GDI+ to measure and render the text. Please refer to the following article for more information: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/text-rendering 

In order to line up correctly the messages use the UseCompatibleTextRendering=true.

I was wondering why did you set this property to false? It would be greatly appreciated if you can provide more information about the specific case that you have. Thus, we would be able to assist you further.

In case you need further assistance do not hesitate to contact me.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Conversational UI, Chat
Asked by
Kim
Top achievements
Rank 1
Answers by
Kim
Top achievements
Rank 1
Nadya | Tech Support Engineer
Telerik team
Share this question
or