This is a migrated thread and some comments may be shown as answers.

Double Underline doesnt match after Exporting to PDF

2 Answers 161 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 04 Dec 2015, 02:45 PM

Double Underline of font family "Calibri" doesn't look match after exporting to PDF

Steps to get this issue.

A. Insert double underline (═══)  in the rich text box. ( RichTextBox.Commands.InsertTextCommand.Execute(\u2550); )

B. Change the font to "Calibri" and font size to 10. 

C.Export into pdf using PdfFormatProvider.Export

You could see the double underline in PDF looks longer that what we see in the rich text box. 

If the double underline (═══)  is set to "Times New Roman"it matches the PDF export

 Is it some thing to do with the font family ? 

 Regards

Anand

 

2 Answers, 1 is accepted

Sort by
0
Anand
Top achievements
Rank 1
answered on 07 Mar 2016, 04:09 PM

Any update on the above query please ?

0
Deyan
Telerik team
answered on 08 Mar 2016, 04:36 PM
Hello Anand,

As this symbol is not available in "Calibri" font, RadRichTextBox fallback mechanism finds another font that contains it. In this concrete case the fallback font is "Microsoft YaHei". I have also tested how MS Word exports the same case and it also fallbacks to another font - in their case this is "Arial". As RadRichTextBox UI draws the text using WPF TextBlocks I suppose that this control also uses different fallback font for rendering the glyph, which explains the difference between the UI and PDF export.

I hope this is helpful. If you have other questions please contact us again.

Regards,
Deyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Anand
Top achievements
Rank 1
Answers by
Anand
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or