function create($fontfile, $encoding) { $font = new FontTrueType(); $font->_read(TTF_FONTS_REPOSITORY . $fontfile, $encoding); return $font; }