Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emojis for the export #94

Open
Gabbalo opened this issue Apr 11, 2021 · 1 comment
Open

Emojis for the export #94

Gabbalo opened this issue Apr 11, 2021 · 1 comment
Labels
improvements Improvements to pre-existing features

Comments

@Gabbalo
Copy link
Contributor

Gabbalo commented Apr 11, 2021

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.

@circumspect
Copy link
Owner

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 circumspect added the improvements Improvements to pre-existing features label Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvements Improvements to pre-existing features
Projects
None yet
Development

No branches or pull requests

2 participants