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
issue: fix square characters being printed when printing tickets that's using languages like Thai #6684
base: 1.17.x
Are you sure you want to change the base?
issue: fix square characters being printed when printing tickets that's using languages like Thai #6684
Conversation
Thank you for the pull request. I like this approach better as traditionally we've been updating the core mPDF config directly which obviously gets overwritten during mPDF upgrade and forgotten about. The way you are doing it will persist across mPDF upgrades. With this being said, in this pull you are removing the TLDR;
Cheers. |
a091d27
to
dfc0240
Compare
dfc0240
to
fd82f0f
Compare
fd82f0f
to
872a649
Compare
Hi @JediKev, I've rebase the PR to target 1.17.x instead of the develop branch as suggested. I've also added the line For some context, I added the With that, I'm wondering why you would want the Lastly, would it be better to move mPDF construct to |
Thank you for the updates. So after some research I found that that line was needed to replace a deprecated or, quote "redundant" function SetAutoFont() (search for SetAutoFont) when upgrading from 5.x to 6.x. But, alas, there is a twist. The line really needs to be Also, you have weird extra spaces on the Ticket2PDF change. If you could rebase to remove those spaces that'd be great as well. Oh, to answer your question about moving it to the parent class; it doesn’t currently have a __construct method and since we already define things in each class in the parent::__construct call you can just add it there like you already have it. This codebase is in maintenance mode so it’s fine; all of this is currently being rewritten with v2.0. Cheers. |
Based on mPdf migration guide: https://mpdf.github.io/installation-setup/installation-v6-x.html
82d6ac1
to
2584403
Compare
Hi @JediKev I've updated Sorry for the extra two spaces, I disabled my IDE PHP auto formatter (Pint) because it would reformat the entire file, so I missed the extra spaces. Instead of removing all spaces, I removed two to ensure that the construct call is at the same indentation level as the rest of the method body. |
Tested on a fresh install of osTicket version 1.18.1
Before adding the mpdf init options, the Thai characters are printed as square brackets:
After: