AddFont method always triggering error: The font definition file has a bad format.
PHP class for PDF
Brought to you by:
nicolaasuni
In the AddFont method, there is a check requiring $type and $cw to be set, but it is placed before those two variables could be set, so it will always trigger the associated error:
"The font definition file has a bad format".
The exact line of the code is:
http://sourceforge.net/p/tcpdf/code/ci/master/tree/tcpdf.php#l4278
I'm trying to fix it, but I still don't understand what the variable $cw is for.
Ok, I didn't see the include($fontfile) a few lines before, so now I understand how this is supposed to work.
Unfortunately I can't find a way to delete this ticket. Sorry for the waste of time ^.^"