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

Fix inconsistent text rendering #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bokub
Copy link

@bokub bokub commented Nov 10, 2022

Font spacing in inconsistent when puppeteer is launched in headless mode (related issue).

For example, if you input the following text in wtfresume.com, the numbers are aligned as you can see in the screenshot.

aaaaa..................................................................|111
qwertyasdfzxcvyuiohjklbnm.............................|222
longlonglonglonglonglonglonglongshorty......|333

image


However, this is what the rendered PDF looks like:

image

  • The numbers aren't aligned anymore
  • The spacing between letters is very inconsistent

With --font-render-hinting=none, the issue is fixed, as you can see here:

image

@vercel
Copy link

vercel bot commented Nov 10, 2022

Someone is attempting to deploy a commit to a Personal Account owned by @sramezani on Vercel.

@sramezani first needs to authorize it.

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

Successfully merging this pull request may close these issues.

None yet

1 participant