Page 1 of 1

Problem formatting RTF

Posted: Thu Nov 07, 2019 10:48 am
by rafik_lp
Hello,

I got an issue when trying to load a rtf.

The method "LoadRTF" of TRichView returns false when trying to load this rtf (see in attached).

Has anyone have an idea about the issue ?

Thank's

Re: Problem formatting RTF

Posted: Thu Nov 07, 2019 7:19 pm
by Sergey Tkachenko
This RTF has the following code for a font table:

Code: Select all

{\rtf1\ansi{\fonttbl{\af0\fcharset0 Times New Roman;}
{\f1\fcharset0 Times New Roman;}
{\af2\fcharset0 Calibri;}
{\f3\fcharset0 Calibri;}
}
According to RTF specification, "\f" is required in font table entries. So TRichView treats "{\af2\fcharset0 Calibri;}" as an error.