Hello,
That error appears when trying to use a not supported font family. Although the next release of phpdocx will remove it, you can update the method replacing this line:
$font = Font_Metrics::get_font($family, $subtype);
with:
$font = $family;
And:
$family = null;
if ($DEBUGCSS) print '(default)';
$font = Font_Metrics::get_font($family, $subtype);
with:
$family = null;
//if ($DEBUGCSS) print '(default)';
$font = $family;
Also remove the Exception in the same method:
throw new Exception("Unable to find a suitable font replacement for: '" . $this->_props["font_family"] ."'");
Regards.