ScaleRichViewEdit - different gaps between characters

General TRichView support forum. Please post your questions here
Post Reply
filo
Posts: 22
Joined: Wed Apr 12, 2017 12:28 pm

ScaleRichViewEdit - different gaps between characters

Post 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 14181 times
different gaps between characters (zoomed)
different gaps between characters (zoomed)
AGaps-zoomed.jpg (14.51 KiB) Viewed 14181 times

Thank you for answer.


PS: TRichViewEdit 16.15.2, Editor2 demo, ActionTest demo, Windows7
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: ScaleRichViewEdit - different gaps between characters

Post 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.
filo
Posts: 22
Joined: Wed Apr 12, 2017 12:28 pm

Re: ScaleRichViewEdit - different gaps between characters

Post by filo »

OK, thanks for your explanation.
Post Reply