Some ContextThis post is targeted toward any developers (or soon to be developers) that need to produce multi-language certificates of completion for Moodle. The Moodle certificate module delivers certificates by generating PDF files. I had assumed that PDFs benefited from the same gains that web applications have with the advent of unicode character sets. The reality is more nuanced when it comes to multi-language documents.
Moodle's PDF font support is broken, but soon to be fixed
- Downloading fonts file from project http://sourceforge.net/projects/tcpdf/files/
- Unzip and place the fonts folder into your Moodle dataroot folder
- Reference additional fonts by creating a custom certificate type. See https://docs.moodle.org/19/en/Certificate_module#Customize_format for creating custom certificate type. Although Moodle 1.9 specific documentation, the Moodle 2.x version of the document doesn't have the details for making a custom type and the basic instructions are still the same.
No universal free unicode font for all languages
Asian fonts are special
- Latin, cyrillic, arabic cert type (fonts freesans, freeserif without use of bold style)
- Traditional Chinese cert type (font cid0ct)
- Simplified Chinese cert type (font cid0cs)
- Korean cert type (font cid0kr)
- Japanese cert type (font cid0jp)