Unicode Font BackGround Color Problem

General TRichView support forum. Please post your questions here
Post Reply
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

Unicode Font BackGround Color Problem

Post by viperpix »

Hi,
here's the thing, when i select some unicode character inside a continues Word and color the backgnd of the selection text by somthin like this:

rve.ApplyStyleConversion(TEXT_BACKCOLOR); // TEXT_BACKCOLOR=8
.
.

------------- in OnStyleConversion Event:

case UserData of
TEXT_BACKCOLOR:
FontInfo.BackColor := selbkcol;
the selected characters turn to a separate word and the begin and the end chars of the selection are no longer sticked to the others!
Here is a sample:
if i have a none-sense word like:
شسیبلاتنمک
and if i select 6 chars with start by 2 from right (سیبلات), the selection will be colored but the word will goes like this:
ش سیبلات نمک (but without any spaces)!
what can i do?!
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, sticking characters of word written with different font (even with different color) is not supported yet.
Post Reply