We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f7e61 commit d51ccfaCopy full SHA for d51ccfa
src/core/text-rendering/SdfTextRenderer.ts
@@ -389,7 +389,7 @@ const generateTextLayout = (
389
return {
390
glyphs,
391
distanceRange: fontScale * fontData.distanceField.distanceRange,
392
- width: effectiveWidth,
+ width: maxWidth || effectiveWidth * fontScale,
393
height: maxHeight || effectiveHeight,
394
fontScale: fontScale,
395
lineHeight: lineHeightPx,
0 commit comments