Skip to content

Commit

Permalink
Account for letter-spacing and word-spacing css
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiccupcake committed Jan 13, 2017
1 parent bed46d4 commit 324d1bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Truncate.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ export default class Truncate extends Component {
style['font-weight'],
style['font-style'],
style['font-size'],
style['font-family']
style['font-family'],
style['letter-spacing'],
style['word-spacing']
].join(' ');

canvas.font = font;
Expand Down

0 comments on commit 324d1bf

Please sign in to comment.