Page 1 of 1

english and arabic text in the document

Posted: Sun Jun 06, 2010 8:23 am
by sr1111
I have (english and arabic text) in the one richedit
how can I change font in the richviewedit all arabic and english text

I want to
arabic text only= arial,
english text only=times new roman


I can make this but all text arial
RichViewEdit.SelectAll;
RichViewEdit.Style.TextStyles[0].FontName:= 'Arial';

Posted: Sat Jun 12, 2010 7:39 pm
by Sergey Tkachenko
Sorry for the delay.
TRichView does not have standard functions to apply different formatting to English and Arabic characters.
So the only way is to select character by character and apply font to them depending on the character class (of course, it can be optimizing by selecting the whole fragment containing only English or only Arabic characters).
But what to do with characters that are not Arabic and not English? Spaces or punctuation, for example?