Thank you for contacting us.
RadRichTextBox uses pixels to calculate the internal layout of the document and for this reason all measurement units are converted to pixels when loading the document. However, I agree that storing them as pixels when exporting will cause compatibility issues across different devices. I have logged this in our Feedback Portal and you can review, track or vote for it here: http://feedback.telerik.com/Project/154/Feedback/Details/132924-fix-documents-exported-with-the-htmlformatprovider-have-their-font-sizes-and-oth
For the time being, the only workaround I can suggest is to post process the export result using regular expressions and convert all font sizes to pt units:
RtfFormatProvider provider =
RadDocument document = provider.Import(File.ReadAllBytes(
HtmlFormatProvider html =
res = html.Export(document);
Regex regex =
Match match =
match = regex.Match(res);
value = match.Value.Substring(
.Length, match.Value.Length -
.Parse(value) * 72 / 96;
res = res.Replace(match.Value, @
+ Math.Round(pts, 4) +
I have updated your Telerik points
for bringing this to our attention.
Hope this will help. Should you have any further questions, do not hesitate to write back.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.