Hello Syncfusion team,
I'm using @syncfusion/ej2-angular-diagrams (version 19.3.55) and Syncfusion.HtmlToPdfConverter.QtWebKit.Net.Core (version 19.4.0.38) in my app.
I have SVG nodes in my app, and consequently, to print these, I have to call DiagramComponent::getDiagramContent() and send it server-side (linux) and export it with HtmlToPdfConverter.
I noticed that non-english annotations do not print properly. See example below:
Original diagram
Exported image
I also noticed that using UTF8 as the encoding for WebKitConverterSettings will fix this issue on Windows, but not on linux.
I've attached all necessary files (diagram json, html output from getDiagramContent method etc).
Please let me know if any additional information is needed for troubleshooting.
Thanks,
-Mithun
Attachment: nonenglishannotationissue_203c05ce.zip
Also here are the contents of my QtBinariesLinux folder and the apt-get packages installed via my dockerfile.
QtBinariesLinux folder
apt-get packages installed via dockerfile
Hi Mithun,
We will validate your requirement and update you with more details on 7th January, 2022.
Regards,
Shyam G
Hi Mithun,
Currently we are analysing this issue in the linux docker and will update you with more details on 11th January, 2022.
Regards,
Shyam G
Hi Sivaram,
Thanks for the detailed reply.
After digging a bit into this, I realized that Roboto Mono font used in my app does not actually handle most unicode characters. See pic below.
In the sample, you provided, the roboto mono ttf files are actually redundant (i.e. they don't get used while printing/rendering).
Only the arialunicodems.ttf file gets used (possibly as a fall-back font).
You can try it out for yourself (remove all roboto mono ttf files, keep only the arialunicodems.ttf file in your sample).
While
arialunicodems.ttf
seems to handle most unicode characters, some languages are still not supported (e.g. sinhala).
Will revert back with some more details.
Thanks,
-Mithun