Moodle 3.1のころ, 課題に提出されたファイルの2バイト文字が文字化けせず正しくPDFに変換されるためには, moodle/mod/assign/feedback/editpdf/classes/pdf.php 内の複数個所を編集
// $this->SetFont('helvetica', '', 16.0 * $this->scale);
$this->SetFont('kozminproregular', '', 16.0 * $this->scale);
しろという話があったのですが, Moodle 3.5.3 から, pdf.php の編集は不要で, moodle/config.php で
$CFG->pdfexportfont = 'kozminproregular';
すればよい, ようになっていたのですね.
- https://tracker.moodle.org/browse/MDL-63439
- MDL-63439 assign: Unicode charsets for pdf https://github.com/moodle/moodle/commit/100e479daf8ed9ceaae6c0027a42f29bc177ff4a