Ok, I didn't see the include($fontfile) a few lines before, so now I understand how...
AddFont method always triggering error: The font definition file has a bad format.