Skip to content

Commit d51ccfa

Browse files
committed
return proper width sdf
1 parent 49f7e61 commit d51ccfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/text-rendering/SdfTextRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ const generateTextLayout = (
389389
return {
390390
glyphs,
391391
distanceRange: fontScale * fontData.distanceField.distanceRange,
392-
width: effectiveWidth,
392+
width: maxWidth || effectiveWidth * fontScale,
393393
height: maxHeight || effectiveHeight,
394394
fontScale: fontScale,
395395
lineHeight: lineHeightPx,

0 commit comments

Comments
 (0)