You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to the backend and create a new certificate template
Set the 'Certified Message' field to be 'This is to certify that é has completed the course'
Preview the certificate
See the 'Fatal Error' wp error message
What's happening is that first of all, in class-woothemes-sensei-certificate-templates.php, it sees that the font has a weird character set, and it returns 'mb'.
Then it sets the font to 'Deja Vu', because the font type is 'mb'
// Set the field text styling based on the font type
$fonttype = '';
if (!$custom_font) {
$fonttype = $this->get_font_type($value);
switch ($fonttype) {
case 'mb':
$fpdf->SetFont('DejaVu', '', $font['font_size']);
break;
case 'latin':
$fpdf->SetFont($font['font_family'], $font['font_style'], $font['font_size']);
break;
default:
$fpdf->SetFont($font['font_family'], $font['font_style'], $font['font_size']);
break;
}
}
Then in '/sensei-certificates/lib/tfpdf/tFPDF/PDF.php', it triggers the fatal error, because 'DejaVu' is not in the arr_core_fonts array
Steps to Reproduce
What's happening is that first of all, in class-woothemes-sensei-certificate-templates.php, it sees that the font has a weird character set, and it returns 'mb'.
Then it sets the font to 'Deja Vu', because the font type is 'mb'
Then in '/sensei-certificates/lib/tfpdf/tFPDF/PDF.php', it triggers the fatal error, because 'DejaVu' is not in the arr_core_fonts array
The text was updated successfully, but these errors were encountered: