The telerik text box couldn't display latin character after export pdf

9 posts, 1 answers
  1. tom
    tom avatar
    4 posts
    Member since:
    May 2016

    Posted 07 May Link to this post

    My report include Persian/English character. I configured the telerik text box by Localizing Reports and everything was OK in report viewer. however, when I exported the report in PDF format the English character replaced with boxes.

    I used the font that called Nazanin. If I changed the font to Times New Roman the problem solved, however, I need the Nazanin font for Persian character.

    I read the Design Considerations for PDF Rendering and applied it. I also read Reporting PDF export of RTL languages, Export to PDF (Arabic / Persian Language) problem and Report Localization / Globalization Problem in telerik forum.

    In the Report Localization / Globalization Problem, Stef (one of the forum's Admin) refer to PDF Device Information Settings, so I configured the web.config for 'Full Font Embedding` using Telerik Reporting Configuration Section and Extensions Element, however, my problem hasn't been solved yet.

    I used the HtmlTextBox instead of TextBox in telerik reporting too, but my problem didn't solve.

    Any helps, appreciated.

  2. Katia
    Admin
    Katia avatar
    309 posts

    Posted 11 May Link to this post

    Hi Tom,

    There might be a difference between the result in the viewer and PDF output as GDI font substitution for HTML rendering format behaves differently than PDF.
    Check if the font was indeed embedded - information about fonts is located in PDF file in Document Properties -> Fonts.
    If there are Unicode Glyphs missing on the client, you may see characters replaced with boxes.

    Also, make sure that the font you use supports the characters that would be displayed. For example, when you use a font that does not support non-Latin characters, but then non-Latin characters are added to the report and it is exported to PDF, they would be replaced by question mark character (?) as PDF doesn’t automatically substitute fonts.

    You might also have to restart the machine if possible in order for Telerik Reporting to be able to use the new font. If this is not possible in your environment check this post.

    You can refer to the following articles if you need more detailed information:


    Regards,
    Katia
    Telerik
    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
  3. DevCraft banner
  4. tom
    tom avatar
    4 posts
    Member since:
    May 2016

    Posted 14 May in reply to Katia Link to this post

    Thanks Katia,

    I already said that I refer to those links.(PDF Device Information SettingsDesign Considerations for PDF Rendering)

    I asked this question in stackoverflow.com too. I understood if the telerik library had the fallback mechanism then this problem didn't occur.

    So, will the telerik library have that mechanism in future? (I used the telerik reporting 2015 Q2.)

     

    Best Regards,

    Tom.

  5. Katia
    Admin
    Katia avatar
    309 posts

    Posted 18 May Link to this post

    Hi Tom,

    Fonts fallback mehanism is out of Reporting engine scope and rather relates to the PDF reader that will use it to substitute fonts not embedded in the document and not existing on the machine.

    It seems like the font you use does not suport English characters and that is the reason they are replaced with boxes. Other font requirements are described in Design Considerations for PDF Rendering(Font Requirements) section.

    Thus, test using another font that has a support for English characters or use both Nazanin/Times New Roman(another font that supports English characters) considering the PDF rendering specifics that was discussed previously.


    Regards,
    Katia
    Telerik
    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
  6. tom
    tom avatar
    4 posts
    Member since:
    May 2016

    Posted 20 May in reply to Katia Link to this post

    Hi Katia,

    So, could you guide me how to apply both Nazanin/Time New Roman to one textbox, please?

    Best regards,

    Tom.

  7. Katia
    Admin
    Katia avatar
    309 posts

    Posted 25 May Link to this post

    Hi Tom,

    Unfortunately, you can apply only one font to a single TextBox.

    To display different fonts the text needs to be placed in different TextBoxes with different font settings.


    Regards,
    Katia
    Telerik
    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
  8. Answer
    British
    British avatar
    12 posts
    Member since:
    Jul 2014

    Posted 28 May in reply to Katia Link to this post

    Hi

    The Problem can be Solved with IRNazanin Font that is free.

     i had this problem and solve it with this font.Nazanin and B nazanin has no english glyphs, but IRNazanin has fix this glyph problem.

     

    GoodLuck

  9. tom
    tom avatar
    4 posts
    Member since:
    May 2016

    Posted 29 May in reply to British Link to this post

    Hi British,

    Thanks a lot,

    Your solution solved my problem, however, the new problem has been occurred. The number didn't display in correct format (Persian format). It displayed in English format.

    Any Ideas?

  10. peter
    peter avatar
    5 posts
    Member since:
    Jun 2016

    Posted 01 Jun in reply to tom Link to this post

    hi

    check these free fonts

    http://awebfont.ir/downloads

Back to Top
DevCraft banner