dompdf / php-font-lib

A library to read, parse, export and make subsets of different types of font files.
GNU Lesser General Public License v2.1
1.73k stars 256 forks source link

Fatal error - require_once 'fontlib/src/FontLib/Table/Type/fftm.php' #48

Closed consolibyte closed 2 years ago

consolibyte commented 8 years ago

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).
bsweeney commented 8 years ago

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 {
}
bsweeney commented 2 years ago

I believe this was addressed by 04b2cf6d

acobarras commented 2 years ago

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: