Fatal error - require_once 'fontlib/src/FontLib/Table/Type/fftm.php'
consolibyte opened this issue · 3 comments
I am getting this error when trying to render a document using DomPDF.
require_once(/usr/home/app/www/html/signup/../library/fontlib/src/FontLib/Table/Type/fftm.php): failed to open stream: No such file or directory
Is this font type not supported, or?
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33450001-fatal-error-require_once-fontlib-src-fontlib-table-type-fftm-php?utm_campaign=plugin&utm_content=tracker%2F317728&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F317728&utm_medium=issues&utm_source=github).What font are you using? The only thing I could find related to FFTM is a custom FontForge table. Since this is a custom table it's probably not supported by php-font-lib. @PhenX could better answer but I guess some exception handling around table classes might be in order to not fail on an unsupported font table.
If this is indeed an issue related to a font created with FontForge I'd look to see if you can exclude that table. And if you can't do that maybe just craft a class to handle this table. If you look at the head table class you can see that not much is required. I haven't tested, but maybe even something as simple as the following would work:
<?php
namespace FontLib\Table\Type;
use FontLib\Table\Table;
class fftm extends Table {
}
tengo el mismo error al implementar un checkbox o un radio en el pdf de DOMPDF no se que pueda ser
Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\sidpa_2\app/FontLib/Table/Type/fftm.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\sidpa_2\app\autoload.php:7
Stack trace: