Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.6.3, 2.6.4, 2.6.5, 2.7, 2.7.1, 2.7.2
-
Component/s: Libraries
-
Labels:
-
Testing Instructions:
-
Workaround:
-
Affected Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip_
MDL-47333_m28_fonts -
Pull Master Diff URL:
Description
When the tcpdf library was last upgraded, in MDL-40107, it introduced a bug that prevents the default font folder from being replaced by a fonts folder in dataroot. This prevents using custom / additional fonts in custom certificate types (unless you place the font files in lib/tcpdf/fonts).
pdflib.php defines the pdf class which overides the TCPDF class. Support for custom font folders is introduce by overiding the _getfontpath() member function. However in the new version of TCPDF this function has been moved into a new class TCPDF_FONTS causing the Moodle version of _getfontpath() to no longer be called.
I haven't confirmed that Moodle 2.5 works. But I had M22, M26, and M27 test sites that I tested the bug against. M22 worked, but M26 and M27 sites were both broken.
Attachments
Issue Links
- is a regression caused by
-
MDL-40107 Upgrade TCPDF to tcpdf_6_0_031
-
- Closed
-