Double Underline doesnt match after Exporting to PDF

3 posts, 0 answers
  1. Anand
    Anand avatar
    30 posts
    Member since:
    Jul 2014

    Posted 04 Dec 2015 Link to this post

    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. Anand
    Anand avatar
    30 posts
    Member since:
    Jul 2014

    Posted 07 Mar in reply to Anand Link to this post

    Any update on the above query please ?

  3. UI for WPF is Visual Studio 2017 Ready
  4. Deyan
    Admin
    Deyan avatar
    136 posts

    Posted 08 Mar Link to this post

    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
Back to Top