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
0
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
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
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
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