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

[12.x] Use DejaVu Sans for receipts #1083

Merged
merged 1 commit into from
Mar 5, 2021
Merged

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Mar 5, 2021

This PR fixes an issue with the generated receipts using DomPdf to properly display UTF-8 characters. It introduces the DejaVu Sans font that ships with DomPdf. It was specifically added to DomPdf to display UTF-8 characters. The receipts will, however, have a different look and feel because of this. Personally I think they look better.

More info: https://github.com/dompdf/dompdf/wiki/About-Fonts-and-Character-Encoding

Before:

Screenshot 2021-03-05 at 18 27 25

After:

Screenshot 2021-03-05 at 18 23 45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants