changing font colors and size

Re: changing font colors and size

by Venkata Surreddy Dwarampudi -
Number of replies: 0

Hi,

In certificate.php file, adjust following lines related to students name, course name and the date as appropriate.

$pdf->SetTextColor(R,G,B) // provide R G B values to change the font color

certificate_print_text($pdf, $x, $y, $align, $font, $style, $size, $text) // increase $size parameter to change font size

Yes it is possible to use custom fonts by uploading them to /lib/tcpdf/fonts folder. For detailed instructions, please see:
https://moodle.org/mod/forum/discuss.php?d=279569#p1201200
https://moodle.org/mod/forum/discuss.php?d=104362#p904688