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

characterSpacing only applied to first instance #224

Closed
daeschwed opened this issue Apr 17, 2014 · 4 comments
Closed

characterSpacing only applied to first instance #224

daeschwed opened this issue Apr 17, 2014 · 4 comments

Comments

@daeschwed
Copy link

Seems there's an issue with characterSpacing, when using more then one within the same document:

// second one fails to apply character spacing
doc.text('12345.67', {
     width: 400,
     align: 'right',
     characterSpacing: 30
   });

doc.text('12345.67', {
     width: 400,
     align: 'right',
     characterSpacing: 30
   });

Am I missing something here?
For my particular use case I was able to come up with a work around. However I couldn't figure out what's wrong with the above snippet. Any insights?

Btw - your lib absolutely rocks, probably one of my most favorite node modules ever! Keep up the great work.

@KeeTraxx
Copy link

I noticed that it works when you change the characterSpacing on the second instance. It only doesn't work when you have the same characterSpacing twice.

@devongovett
Copy link
Member

Good catch, probably related to this line. I'll fix soon.

@daeschwed
Copy link
Author

That's great news

@devongovett
Copy link
Member

Fixed by #238.

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

3 participants