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

Exporting Unicode characters

5 Answers 435 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 12 Sep 2016, 09:07 PM

Hi,

Is it possible to export Unicode characters from supplementary planes (above Plane 0), i.e. those that need more than 2 bytes of storage?  They seem to be silently ignored (normally a replacement character such as '?' is shown for unsupported code points).

A simple test shows that small value code points are OK but longer ones are ignored.  This should show 2 smiley faces:

var editor = new FixedContentEditor(container);
editor.DrawText("Smiley face OK: \u263A   Smiley ignored: \uD83D\uDE0A");

Any comments/suggestions would be welcome.

Thanks,
Chris

UI for WPF R2 2016 SP1

5 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 15 Sep 2016, 04:14 PM
Hi Chris,

In order to ensure that each character will be properly drawn in the PDF document, you should verify that the symbol is available in the font you are using.

You could find the font that will suit your needs and register it using the API of PdfProcessing. Here is a forum thread describing how you can register a font.

Hope this helps.

Regards,
Tanya
Telerik by Progress

0
Chris
Top achievements
Rank 1
answered on 20 Sep 2016, 08:04 AM

Tanya,

Thanks for that, it may well be the solution.  I've had a quick try to register and use the correct font; still no luck.  It's likely my mistake so I'll investigate further shortly and report back.

0
Deyan
Telerik team
answered on 23 Sep 2016, 07:35 AM
Hello Chris,

We have tested this scenario with different fonts on our side. Unfortunately, it turns out that there is an issue with exporting Unicode characters above the Basic Multilingual Plane. There is no workaround for exporting such characters. We have logged this issue in our feedback portal and you may follow its implementation progress by following this feedback item.

If you have other questions or concerns please contact us again.

Regards,
Deyan
Telerik by Progress

0
Chris
Top achievements
Rank 1
answered on 27 Sep 2016, 08:18 AM

Deyan, thanks for the update and for confirming my findings.  I'll track the issue.

 

Chris

 

0
Boby
Telerik team
answered on 27 Sep 2016, 11:25 AM
Hi Chris,

We have added  some Telerik points to your account for the report. 


Regards,
Boby
Telerik by Progress

Tags
PdfProcessing
Asked by
Chris
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Chris
Top achievements
Rank 1
Deyan
Telerik team
Boby
Telerik team
Share this question
or