function _loadfont($font) { // Load a font definition file from the font directory include $this->fontpath . $font; $a = get_defined_vars(); if (!isset($a['name'])) { $this->Error('Could not include font definition file'); } return $a; }