When converting HTML -> PDF using HtmlFragment, I noticed that some of the emoji characters present on the text are simply not printed (it draws a square instead) and I managed to reproduce the problem with the code below:
var htmlLoadOptions = new HtmlLoadOptions();
htmlLoadOptions.setEmbedFonts(true);
htmlLoadOptions.setInputEncoding("UTF-8");
frag.setHtmlLoadOptions(htmlLoadOptions);
var doc = new Document("index.html", htmlLoadOptions);
doc.save("test.pdf");
And the following HTML:
<span style="font-family: Noto Emoji Light; ">Ꞡ</span>
Apparently it’s only crashing when it’s a unicode 6.0 character (mostly checked the smiley faces emojis). Are there extra configurations needed in order to print them properly?