CFF outlines not supported, resulting in "Call to a member function getGlyphIDs() on a non-object in /classes/Font_TrueType.php on line 194"
I've just updated to latest version from HEAD of both DOMPDF and php-font-lib, and am getting the following error, rendering a document with Unicode Japanese text, using the Hiragino Kaku Gothic font provided by Mac OSX.
Call to a member function getGlyphIDs() on a non-object in /classes/Font_TrueType.php on line 194
I can provide the font if it would be helpful.
This may be because this font has only Compact Font Format (CFF) outlines, instead of "glyf" ones, which this library doesn't handle (yet). I'm changing the title of this issue.
GitHub.com/Behdad/fonttools had recent python commits for dealing with cff. There its also a machine readable spec parser in Javascript by the pdf.js guy On Nov 1, 2013 12:59 PM, "Fabien Ménager" [email protected] wrote:
This may be because this font has only Compact Font Format (CFF) outlines, instead of "glyf" ones, which this library doesn't handle (yet). I'm changing the title of this issue.
— Reply to this email directly or view it on GitHubhttps://github.com/PhenX/php-font-lib/issues/10#issuecomment-27580897 .