views:

221

answers:

0

Hi, I've got the following RTF fragment as data to display in a WPF rich text box.

C\dn4\fs14 6\up0\fs18 H\dn4\fs14 12\up4 +2\up0\fs18\par

It looks like the \dn4, \up0 and \up4 tags are ignored by the WPF rich text box, which displays this fragment with varying sizes (fs14 and fs18), but with a common baseline for all of the text.

Is there any known method (probably by pre-parsing the rtf or converting it en masse to XAML) to get this to appear correctly in the RichTextBox?