Page 1 of 1

ScaleRichViewEdit - different gaps between characters

Posted: Wed Jun 21, 2017 6:18 am
by filo
Hi Sergey,
we have found some visual issues during our internal testing of TSRichViewEdit.
Maybe there is some property for setting that, but the same behavior we can reproduce on demo example (ActionTest demo).
Please look below, there is TRichViewEdit on the left (OK) and TSRichViewEdit on the right. The same font with the same size, but for TScaleRichView some gaps between characters are wider than other (e.g. after second or fourth 'a' character)
different gaps between characters
different gaps between characters
AGaps.jpg (81.29 KiB) Viewed 12218 times
different gaps between characters (zoomed)
different gaps between characters (zoomed)
AGaps-zoomed.jpg (14.51 KiB) Viewed 12218 times

Thank you for answer.


PS: TRichViewEdit 16.15.2, Editor2 demo, ActionTest demo, Windows7

Re: ScaleRichViewEdit - different gaps between characters

Posted: Wed Jun 21, 2017 11:07 am
by Sergey Tkachenko
In TRichViewEdit/TRVPrint, text is formatted for perfect displaying in the specified screen/printer resolution. However, it's not possible to implement WYSIWYG in this way.
In ScaleRichView, text is formatted on a off-screen hi-resolution canvas, and then drawn stretched on screen/printer. Unfortunately, this method may give error in one pixel when positioning characters. Printers usually have high DPI, so this error is not noticeable, but on screen you can see it. Unfortunately, it is unavoidable.

Re: ScaleRichViewEdit - different gaps between characters

Posted: Wed Jun 21, 2017 1:02 pm
by filo
OK, thanks for your explanation.