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

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

8 Answers 451 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
tom
Top achievements
Rank 1
tom asked on 07 May 2016, 05:49 AM

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.

8 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 11 May 2016, 02:58 PM
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
0
tom
Top achievements
Rank 1
answered on 14 May 2016, 06:40 AM

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.

0
Katia
Telerik team
answered on 18 May 2016, 02:22 PM
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
0
tom
Top achievements
Rank 1
answered on 21 May 2016, 04:59 AM

Hi Katia,

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

Best regards,

Tom.

0
Katia
Telerik team
answered on 25 May 2016, 06:57 AM
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
0
Accepted
British
Top achievements
Rank 1
answered on 28 May 2016, 10:19 AM

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

0
tom
Top achievements
Rank 1
answered on 29 May 2016, 06:54 AM

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?

0
peter
Top achievements
Rank 1
answered on 01 Jun 2016, 09:22 AM

hi

check these free fonts

http://awebfont.ir/downloads

Tags
General Discussions
Asked by
tom
Top achievements
Rank 1
Answers by
Katia
Telerik team
tom
Top achievements
Rank 1
British
Top achievements
Rank 1
peter
Top achievements
Rank 1
Share this question
or