Skip to content

Commit cfc73e7

Browse files
committed
Revert "Account for letter-spacing and word-spacing css (#29)"
context.font does not expect letter spacing / word spacing argument. See #30 for more details. This reverts commit c4880ec.
1 parent 5e7a460 commit cfc73e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Truncate.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ export default class Truncate extends Component {
141141
style['font-weight'],
142142
style['font-style'],
143143
style['font-size'],
144-
style['font-family'],
145-
style['letter-spacing'],
146-
style['word-spacing']
144+
style['font-family']
147145
].join(' ');
148146

149147
canvas.font = font;

0 commit comments

Comments
 (0)