White-Rabbit icon indicating copy to clipboard operation
White-Rabbit copied to clipboard

Emojis for the export

Open Gabbalo opened this issue 3 years ago • 1 comments

As emojis are quite common in chats, it whould be really cool, if those emojis whould be included in the export-file as they are usable in the discord chat. Of corse, that whould be restricted to the default-emojis. A possible open font (as far as I can see) is Google Noto. I have no idea, IF the chat can be, like, transcripted to tell apart the text and the emojis, buit it really would be cool, if they will appear in the export at some time.

Gabbalo avatar Apr 11 '21 11:04 Gabbalo

I chose the fonts for the PDF export to match the fonts used on the game cards as closely as possible. That said, it should be pretty easy to add your own fonts by changing a few lines in the export.py file. To keep emojis, comment out the line in clean_message() in utils.py that says remove_emojis. I'm not actually sure if the bot crashes when including emojis due to a limitation of the font or a limitation of the FPDF library, so feel free to play around with it a bit

circumspect avatar Apr 11 '21 17:04 circumspect