Skip to content
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

CFF outlines not supported, resulting in "Call to a member function getGlyphIDs() on a non-object in /classes/Font_TrueType.php on line 194" #10

Open
jameswilson opened this issue Oct 10, 2013 · 2 comments

Comments

@jameswilson
Copy link

jameswilson commented Oct 10, 2013

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.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1304216-cff-outlines-not-supported-resulting-in-call-to-a-member-function-getglyphids-on-a-non-object-in-classes-font_truetype-php-on-line-194?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).
@PhenX
Copy link
Member

PhenX commented Nov 1, 2013

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.

@davelab6
Copy link

davelab6 commented Nov 1, 2013

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" notifications@github.com 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//issues/10#issuecomment-27580897
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants