signintech / gopdf

A simple library for generating PDF written in Go lang
MIT License
2.49k stars 268 forks source link

Emojis are not getting rendered #81

Open apremalal opened 6 years ago

apremalal commented 6 years ago

I'm trying to render emojis in the pdf ex pdf.Cell(nil, "🤨 Colbert")

But this doesn't get rendered at all. Do I need to make any special configurations to get this working?

eprovst commented 5 years ago

Does the font you have selected include emojis? Because as far as I know gopdf doesn't fallback to another typeface if a character is missing from the current typeface. :slightly_smiling_face:

vantaboard commented 2 months ago

@oneplus1000 can you close this issue if it has been resolved? It seems like @eprovst gave the best response. It's not an issue but a misunderstanding about how fonts are used.