Japanese Characters on Certificate

Japanese Characters on Certificate

by Keith Rupnik -
Number of replies: 2

Moodle 2.6.2

Certificate type: Letter Embedded

Border Image: Fancy1-black

User sets language to Japanese

Clicks on "Get your certificate"

In the date area of the certificate is a question mark inside a box (see attached snip, couldn't upload the whole file).

I read MDL-40107 and also did the test print which shows the same character (also see attached snip, couldn't upload the whole file).

I upgraded to tfpdf 6.0.065 from 6.0.031 and the test print is the same.

Any thoughts?

Thank you in advance.

Average of ratings: -
In reply to Keith Rupnik

Re: Japanese Characters on Certificate

by Jean-Michel Védrine -

Hello Keith,

It could be a problem with the font used to print the texts on the certificate.

Make sure all texts are printed with a font that has a complete UTF-8 set of characters.

  • freesans is a good choice
  • helvetica or times don't work

To see the font used in your certificate, open the mod/certificate/yourtype/certificate.php where yourtype is the name of your certificate type and look at all the lines with certificate_print_text

 

In reply to Jean-Michel Védrine

Re: Japanese Characters on Certificate

by Keith Rupnik -

Jean-Michel,

Thank you very much for your reply. Although freesans did not work for me, I was able to use cid0jp font based on a suggestion in another post. Of course it took me awhile to figure out how to specify the font name which was using the file name and not the name in the font file!

So again, thank you for pointing me in the right direction, just different parameters : )