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

Support for Type1 command 12 (7) { Math formulas } #1859

Closed
Teybeo opened this issue Jun 29, 2012 · 2 comments · Fixed by #2214
Closed

Support for Type1 command 12 (7) { Math formulas } #1859

Teybeo opened this issue Jun 29, 2012 · 2 comments · Fixed by #2214

Comments

@Teybeo
Copy link

Teybeo commented Jun 29, 2012

In this document http://perso.univ-rennes1.fr/sean.mcnamara/EDchapter.pdf, none of the formulas are visible though it's possible to highlight them by selection.

There is a lot "Warning: Support for Type1 command 12 (7) is not implemented in charstring: ..." with various values after "charstring:".

The more similar referenced issue I found is #845, but it has an error which seems to be different from this one.

Pdf.js 0.3.435
Firefox 13.0.1
Win 7 Pro 64 bit

@brendandahl
Copy link
Contributor

My notes from when I started looking into this while waiting for some builds to finish...
12(7) is the sbw char string command which is similar to hsbw(which we support) but sbw is the more general command and allows you to set the y of the side bearing and the height of the glyph. Sbw is mainly used in CJK fonts or math fonts as seen in your example. To support this I believe we'll need to add vhea and vmtx tables to the converted font which I tried to do quickly but couldn't get to pass the font sanitizer.

@yurydelendik
Copy link
Contributor

Fixed by #2214

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

Successfully merging a pull request may close this issue.

3 participants