-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix - Change default font for special letters #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
@@ -78,7 +78,7 @@ public function __construct($format = 'A4', $orient = '') | |||
|
|||
$pdf->SetCreator('GLPI'); | |||
$pdf->SetAuthor('GLPI'); | |||
$font = 'helvetica'; | |||
$font = 'dejavusans'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we just moving the problem to another language?
A few lines down (I can't comment on this), $font
is overwritten by $_SESSION[‘glpipdffont’]
. Where can we change this value? This is probably what's missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed the use of the glpipdffont
session variable. Because apart from causing problems when applying fonts that don't take all character styles into account, it's not very useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked it's not modified anywhere in the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I mean is that in the core and the plugin, we are trying to use $_SESSION['glpipdffont']
, which is never defined.
The fix you're making in the plugin should also be applied in the core, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay 👍
Please update the CHANGELOG and it will be OK for me. |
Checklist before requesting a review
Please delete options that are not relevant.
Description
Screenshots (if appropriate):