-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined index: glyf - phenx/php-font-lib/src/FontLib/TrueType/File.php, line 329 #65
Comments
This seems to be somehow related to these styles -- if I remove these styles from my DomPDF document, the error goes away:
|
Dompdf doesn't support OTF fonts at present. Do you have TTF versions? |
That's interesting... since the OTF versions were working fine up until I upgraded to DomPDF 8.0.1. I do have the TTF versions, but they result in the same error message. However, the TTF versions I have were converted from the OTF versions. I have attached both versions. |
I'd be curious to see a sample HTML document and the resulting render from before. But you might open an issue in the Dompdf project since that's a concern not directly related to this error. With Dompdf 0.8.0 we added more checks in the font management portion of Dompdf to prevent processing of non-TTF files. Still, in earlier version I wouldn't expect Dompdf to process the font correctly. |
I'm also getting this with specific fonts. |
Not that this error occurs when attempting to subset a font that does not include a glyf table. A number of OpenType fonts use the CFF table instead. For full support ensure any font you're attempting to parse includes a glyf table. Watch #10 for updates. |
PHP 7.0.6
The line in question is this:
The text was updated successfully, but these errors were encountered: