Why is the font changing?

2 posts, 0 answers
  1. Андрей
    Андрей avatar
    14 posts
    Member since:
    Dec 2014

    Posted 16 Aug 2019 Link to this post

    Hi!

    I am using RadWordsProcessing  and load Word`s file.

    RadFlowDocument document;
    DocxFormatProvider fileFormatProvider = new DocxFormatProvider();
    string fileName = Server.MapPath("./Data/Document.docx");
    using (FileStream input = new FileStream(fileName, FileMode.Open))
    {
                document = fileFormatProvider.Import(input);
    }
    RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);

     

    Text in the file is written in Times New Roman font.

    But when exporting to pdf, the font changes to Segoe UI font.

    Why?

     

     

     

     

     

  2. Martin
    Admin
    Martin avatar
    39 posts

    Posted 21 Aug 2019 Link to this post

    Hi Андрей,

    The code seems all right. I tried to reproduce the issue described, but in my example, I haven't noticed such behavior. Could I ask you to send me the document so I can test it locally and try to find the reason for the issue you are experiencing?

    Regards,
    Martin
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top