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

SVG font rendering broken for some PDFs on Windows #4986

Closed
timvandermeij opened this issue Jun 20, 2014 · 1 comment · Fixed by #5184
Closed

SVG font rendering broken for some PDFs on Windows #4986

timvandermeij opened this issue Jun 20, 2014 · 1 comment · Fixed by #5184
Labels
Milestone

Comments

@timvandermeij
Copy link
Contributor

Found using examples/svgviewer using Windows 7 x64, Firefox 33.0a1 (64-bit, HWA on) and the latest PDF.js development version.

See https://i.imgur.com/xrXkUTL.png for what's happening. This bug has been reported upstream (https://bugzilla.mozilla.org/show_bug.cgi?id=1023929), so this is a tracking bug for the upstream issue.

@timvandermeij timvandermeij changed the title Font rendering broken for some PDFs on Windows SVG font rendering broken for some PDFs on Windows Jun 20, 2014
@yurydelendik
Copy link
Contributor

We can avoid that by specifying non-zero width of the characters in the 'hmtx' table, see https://github.com/mozilla/pdf.js/blob/master/src/core/fonts.js#L4307

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

Successfully merging a pull request may close this issue.

2 participants