Declined
Last Updated: 08 Jul 2015 12:33 by ADMIN
ADMIN
Dimitar
Created on: 23 Jun 2015 13:23
Category: RichTextEditor
Type: Bug Report
1
FIX. RadRichTextEditor - wrong font when rtf string is imported.
To reproduce:
Import the following rtf:
string rtfText = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil\fcharset0 Tahoma;}{\f2\fnil\fcharset0 Times New Roman;}{\f3\fnil\fcharset0 Arial Unicode MS;}{\f4\fnil\fcharset0 Calibri;}}
{\colortbl ;\red0\green0\blue0;}
\viewkind4\uc1\pard\tx300\tx600\tx900\tx1200\tx1500\tx1800\tx2100\tx2400\tx2700\tx3000\tx3300\tx3600\tx3900\tx4200\tx4500\cf1\b\fs32 Arial\f1\par
Tahoma\par
\f2 Times New Roman\par
\f0 Arial\f2\par
\f3 Arial Unicode MS\par
\f4 Calibri\b0\f0\fs20\par
}";
RtfFormatProvider rtf = new RtfFormatProvider();
this.radRichTextEditor1.Document = rtf.Import(rtfText);

this.richTextBox1.Rtf = rtfText;
1 comment
ADMIN
Stefan
Posted on: 08 Jul 2015 12:33
Duplicate of: http://feedback.telerik.com/Project/154/Feedback/Details/162146-fix-radrichtexteditor-wrong-font-when-rtf-string-is-imported