Menu

#1024 AddFont method always triggering error: The font definition file has a bad format.

v1.0_(example)
closed
nobody
fonts (3)
5
2015-02-10
2015-02-06
dubrox
No

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.

Discussion

  • dubrox

    dubrox - 2015-02-06

    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 ^.^"

     
  • Nicola Asuni

    Nicola Asuni - 2015-02-10
    • status: open --> closed
     

Log in to post a comment.