Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
484 views
in Technique[技术] by (71.8m points)

javascript - Not sure if I'm doing something wrong, but I can't display emojis inside the PDF

I'm working in a company which uses jsPDF for frontend pdf generation. We want show emojis in the generated pdf file but as you know jsPDF doesn't support unicode. During investigations I read that you can show emojis if you use a custom font with emoji characters. So I downloaded the official emojione-color ttf file and tried if unicode emojis will be shown.

Badly I realized that jsPDF can't handle it, by the way the most new custom fonts I added won't be shown too (at least the most basic characters).

My questions:

Why most of the custom fonts I want to add won't be shown Can you explain how I can show emojis in a generated pdf (I just know the font based method) I think the jsPDF libary has some bugs regarding custom fonts isn't it?

question from:https://stackoverflow.com/questions/65951085/not-sure-if-im-doing-something-wrong-but-i-cant-display-emojis-inside-the-pdf

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...