Menu

#967 Undeclared variables in TCPDF->AddFont()

v1.0_(example)
closed
None
9
2014-09-01
2014-08-28
No

Hello,

There are 3 undeclared values used at the end of the AddFonds function - namely $originalsize, $size1 and $size2 :

     if (!TCPDF_STATIC::empty_string($file)) {
            if (!isset($this->FontFiles[$file])) {
                if ((strcasecmp($type,'TrueType') == 0) OR (strcasecmp($type, 'TrueTypeUnicode') == 0)) {
                    $this->FontFiles[$file] = array('length1' => $originalsize, 'fontdir' => $fontdir, 'subset' => $subset, 'fontkeys' => array($fontkey));
                } elseif ($type != 'core') {
                    $this->FontFiles[$file] = array('length1' => $size1, 'length2' => $size2, 'fontdir' => $fontdir, 'subset' => $subset, 'fontkeys' => array($fontkey));
                }
            } else {

PS : I hope 9 is low priority, not sure this is causing any issue …

Discussion

  • Nicola Asuni

    Nicola Asuni - 2014-09-01

    Those variables are defined in the font file that is imported.

     
  • Nicola Asuni

    Nicola Asuni - 2014-09-01
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB