Skip to content
This repository

pdf.js fails to load font in "thesis-draft.pdf" #1655

Closed
jwise opened this Issue May 04, 2012 · 4 comments

3 participants

Joshua Wise Yury Delendik Brendan Dahl
Joshua Wise
jwise commented May 04, 2012

In http://bblum.net/thesis-draft.pdf , the font should be Bitstream Charter, but is rendered as some sans-serif font with incorrect metrics. The error console indicates that the font got rejected by the sanitizer, but it renders ok in, say, Preview.app.

Yury Delendik
Collaborator

OTS output:

ERROR at ../src/cff_type2_charstring.cc:785 (bool <anonymous namespace>::ExecuteType2CharString(size_t, const ots::CFFIndex &, const ots::CFFIndex &, ots::Buffer *, ots::Buffer *, std::stack<int32_t> *, bool *, bool *, size_t *))

ERROR at ../src/cff_type2_charstring.cc:880 (bool ots::ValidateType2CharStringIndex(const ots::CFFIndex &, const ots::CFFIndex &, const std::map<uint16_t, uint8_t> &, const std::vector<CFFIndex *> &, const ots::CFFIndex *, ots::Buffer *))

ERROR at ../src/cff.cc:977 (bool ots::ots_cff_parse(ots::OpenTypeFile *, const uint8_t *, size_t))

ERROR at ../src/ots.cc:442 (bool <anonymous namespace>::ProcessGeneric(ots::OpenTypeFile *, ots::OTSStream *, const uint8_t *, size_t, const std::vector<OpenTypeTable> &, ots::Buffer &))

Failed to sanitise file!

dup of #818?

Joshua Wise
jwise commented May 06, 2012

Note that this file was generated with LaTeX, not with MS Word, if that differentiates any. I can ask the author for a copy of the original font file, if it helps.

Brendan Dahl
Collaborator

Looks like another instance of the seac operator which we don't support currently.

Yury Delendik yurydelendik closed this October 13, 2012
Yury Delendik
Collaborator

Closing as fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.