Page 1 of 1

Different View of the same Text in ScaleRichview

Posted: Tue Aug 04, 2026 7:00 am
by tomr
Hi RichView Support,
I have an additional editor form that uses a ScaleRichView to display the same document as my RichViewEdit.
The loaded RVF file is identical, and I have verified that the margins and paragraph indents are the same in both controls. The ZoomFactor is 100%, and PageViewMode is disabled.
Richview vs ScaleRichview.png
Richview vs ScaleRichview.png (36.92 KiB) Viewed 51 times
However, the document is rendered differently. As you can see in the screenshot, the line breaks occur at different positions, although both controls should display the same content.

I'm sure this worked correctly before. Since then, I have made many changes to my application, so I suspect that I may have accidentally changed a setting.

Is there any property or setting that could cause this difference in rendering?

Thank you for your help.

Kind regards,
Tom

Re: Different View of the same Text in ScaleRichview

Posted: Tue Aug 04, 2026 1:49 pm
by tomr
Hello again,
I have created a small Delphi demo project that uses only the basic RichView components and reproduces the described effect.

Please find the attached ZIP file containing the demo project.

Stepts To Reproduce:
Start the Project --> Richview with RightMargin should be displayed
Richview Demo.png
Richview Demo.png (19.88 KiB) Viewed 35 times
Now Press the Button "ScaleRichview"
ScaleRichview with Margin should be Displayed
ScaleRichview Demo.png
ScaleRichview Demo.png (14.62 KiB) Viewed 35 times
The text is different.

Kind regards
Tom

Re: Different View of the same Text in ScaleRichview

Posted: Tue Aug 04, 2026 3:15 pm
by Sergey Tkachenko
This is the expected behavior.
Text in TRichView and TRichViewEdit is formatted and drawn using the screen DPI (or DPI specified in DocumentPixelsPerInch property). This ensures maximum text display quality.
Text in ScaleRichView is formatted using a high DPI value and drawn at DPI providing the required text size on the screen or printer. This ensures consistent text wrapping when drawing on any device.