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 kerning issue #10988

Closed
johnkingsley opened this issue Jul 19, 2019 · 1 comment
Closed

SVG font kerning issue #10988

johnkingsley opened this issue Jul 19, 2019 · 1 comment

Comments

@johnkingsley
Copy link

Attach (recommended) or Link to PDF file here:
font_issue.pdf
font_issue.svg.zip

Configuration:

  • Web browser and its version: Version 56.0.2924.76 (64-bit)
  • Operating system and its version: Linux Mint 18.3
  • PDF.js version: v2.2.228
  • Is a browser extension: no

Steps to reproduce the problem:

  1. Using pdf.js create the SVG file from the attached PDF file
  2. Look at the SVG file in Chrome. Compare with PDF result.

What is the expected behavior? (add screenshot)
When viewing the PDF file, it looks good:
good_output

What went wrong? (add screenshot)
When viewing the SVG file, the characters are too closely spaced:
bad_output

The problem seems to be related to when TrueType fonts are used.
Same issue occurs on both Linux and Windows.
The SVG looks bad in Chrome, Firefox and MS Edge.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

tamuratak added a commit to tamuratak/pdf.js that referenced this issue Jan 30, 2020
tamuratak added a commit to tamuratak/pdf.js that referenced this issue Jan 30, 2020
tamuratak added a commit to tamuratak/pdf.js that referenced this issue Feb 3, 2020
tamuratak added a commit to tamuratak/pdf.js that referenced this issue Mar 1, 2020
tamuratak added a commit to tamuratak/pdf.js that referenced this issue Mar 2, 2020
timvandermeij added a commit that referenced this issue Mar 15, 2020
Fix the horizontal scaling of texts with SVG backend. #10988
@timvandermeij
Copy link
Contributor

Fixed by #11553.

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

2 participants