File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export class CanvasRenderer extends Renderer {
196196 switch ( paintOrderLayer ) {
197197 case PAINT_ORDER_LAYER . FILL :
198198 this . ctx . fillStyle = asString ( styles . color ) ;
199- this . renderTextWithLetterSpacing ( text , styles . letterSpacing , baseline ) ;
199+ this . renderTextWithLetterSpacing ( text , styles . letterSpacing , styles . fontSize . number ) ;
200200 const textShadows : TextShadow = styles . textShadow ;
201201
202202 if ( textShadows . length && text . text . trim ( ) . length ) {
@@ -209,7 +209,11 @@ export class CanvasRenderer extends Renderer {
209209 this . ctx . shadowOffsetY = textShadow . offsetY . number * this . options . scale ;
210210 this . ctx . shadowBlur = textShadow . blur . number ;
211211
212- this . renderTextWithLetterSpacing ( text , styles . letterSpacing , baseline ) ;
212+ this . renderTextWithLetterSpacing (
213+ text ,
214+ styles . letterSpacing ,
215+ styles . fontSize . number
216+ ) ;
213217 } ) ;
214218
215219 this . ctx . shadowColor = '' ;
You can’t perform that action at this time.
0 commit comments