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

How make variable word lenght be equal width with latin words #2695

Closed
eeerrrttty opened this issue Mar 17, 2020 · 1 comment
Closed

How make variable word lenght be equal width with latin words #2695

eeerrrttty opened this issue Mar 17, 2020 · 1 comment

Comments

@eeerrrttty
Copy link

I would like to write: "Parabéns por ter se classificado em 100º lugar", but "é" and " º " break in jspdf.

Also i would like to write a custon text with always width = X pixels, breaking lines after this X pixels.

Not found documentation explaining these things.

@HackbrettXXX
Copy link
Collaborator

#2677

Regarding automatic line breaking, try this:

doc.text("...", x, y, { maxWidth: 100 })

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