diff --git a/src/Truncate/Truncate.tsx b/src/Truncate/Truncate.tsx index 966eacc..8923410 100644 --- a/src/Truncate/Truncate.tsx +++ b/src/Truncate/Truncate.tsx @@ -64,7 +64,10 @@ export const Truncate: React.FC = ({ style.fontFamily, ].join(' ') - if (canvasContext) canvasContext.font = font + if (canvasContext) { + canvasContext.font = font + canvasContext.letterSpacing = style.letterSpacing + } setTargetWidth(newTargetWidth) }, [canvasContext, width])