Different Line Breaks Between RenderTo and WordWrap for Chinese Text

Stimulsoft Reports.JS discussion
Post Reply
qwqy9723
Posts: 2
Joined: Wed Jun 24, 2026 7:29 am

Different Line Breaks Between RenderTo and WordWrap for Chinese Text

Post by qwqy9723 »

Hello,

I am using the RenderTo function when generating my report, and I noticed that the line breaks for Chinese text produced by RenderTo are different from those produced by normal WordWrap.

The normal WordWrap result is correct, while the RenderTo result has different line-breaking positions.

I have attached an MRT sample file containing two sections for comparison: one using RenderTo and the other using normal WordWrap.

I have also attached a comparison image. Different colors are used to highlight the corresponding text in the two results. For example, the first paragraph generated by RenderTo is highlighted in yellow, and the corresponding text in the normal WordWrap result is also highlighted in yellow. The second paragraph is highlighted in green, the third in blue, and so on. This makes the differences in the line-breaking positions easier to identify.

Could you please help check whether there is an issue with the Chinese text measurement or word-wrapping calculation specifically when using RenderTo?

Thank you.
Attachments
RenderTo_Chinese_WordWrap.png
RenderTo_Chinese_WordWrap.png (49.37 KiB) Viewed 17 times
RenderTo_Chinese_WordWrap_Test.mrt
(6.44 KiB) Downloaded 3 times
Max Shamanov
Posts: 1158
Joined: Tue Sep 07, 2021 10:11 am

Re: Different Line Breaks Between RenderTo and WordWrap for Chinese Text

Post by Max Shamanov »

Hello,

We need some additional time to investigate the issue.
We will let you know about the result as soon as possible.

Thank you.
Post Reply