Page 1 of 1

Error about CharSpacing

Posted: Sun Oct 30, 2005 5:21 pm
by peong
I discovered a strange result in setting a value below:

RVStyle1.TextStyles[0].CharSpacing := SpinNo;

when SpinNo = -4, the charcpacing actually increate from -3. ??

My version is still 1.8.1, don't know that this error is't sloved in 1.9.8

Please help, thanks!

Posted: Sun Oct 30, 2005 9:48 pm
by Sergey Tkachenko
Value of this property is interpreted by WinAPI. It is passed to SetTextCharacterExtra function.

Error about CharSpacing

Posted: Sun Oct 30, 2005 11:39 pm
by peong
Sergey Tkachenko wrote:Value of this property is interpreted by WinAPI. It is passed to SetTextCharacterExtra function.
Hi Sergey,
I see, but can this problem solve in Richview as we are using the RVStyle to assign value? :wink:

Error about CharSpacing

Posted: Mon Oct 31, 2005 9:58 am
by peong
Hi Sergey,

Now I know why, it's because when compression meet the edge between two characters, further compression will first cause a 'unlogic' response. value of -4 mentioned is actually when font size at 10. :wink:

Posted: Wed Nov 02, 2005 9:44 pm
by Sergey Tkachenko
As I said, currently this value is interpreted by Windows (SetTextCharacterExtra function).
If you have a better suggestion, let me know.