Adding new font in Moodle 2.9 Certificate

Adding new font in Moodle 2.9 Certificate

by Erwin Ancheta -
Number of replies: 1


Hi Guys,


I just upgraded in Moodle 2.9 from Moodle 2.8.

This line of code is running in Moodle 2.8 (/mod/certificate/type/A4_embeded_edited/certificate.php):

$fontname = $pdf->addTTFfont('/lib/tcpdf/fonts/myfont.php', 'myfont', '', 32);

When I upgraded to Moodle 2.9, unfortunately my certificate activity dose not run anymore (blank page).

Is there a new syntax for this codes that will run in Moodle 2.9?


Please help sad

Thanks in advance.

 




Average of ratings: -
In reply to Erwin Ancheta

Re: Adding new font in Moodle 2.9 Certificate

by Floyd Saner -

Erwin,

It appears from the line of code that someone customized the standard A4_embeded code in your 2.8 version and installed a new font called 'myfont'.  That font is missing from your 2.9 code.  

In fact, I just looked back through the Moodle forums and see that I sent you instructions on adding fonts six months ago, see https://moodle.org/mod/forum/discuss.php?d=279569&parent=1201200

Go back and be certain all the required fonts are installed.  There might also be other errors because the Certificate plugin does not have a Moodle 2.9 version.  I'd enable Developer Debugging and see what other errors are generated.

Floyd