From 503cc253ff7b57d2d927f1a7bde1e3c2870cc20f Mon Sep 17 00:00:00 2001 From: Chris Lorenzo Date: Sun, 10 May 2026 19:20:39 -0400 Subject: [PATCH] set lineHeight back to v2 setup --- src/core/text-rendering/SdfTextRenderer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/text-rendering/SdfTextRenderer.ts b/src/core/text-rendering/SdfTextRenderer.ts index 1ed0693..a8a33ef 100644 --- a/src/core/text-rendering/SdfTextRenderer.ts +++ b/src/core/text-rendering/SdfTextRenderer.ts @@ -216,13 +216,14 @@ const generateTextLayout = ( ): TextLayout => { const fontSize = props.fontSize; const fontFamily = props.fontFamily; - const lineHeight = props.lineHeight; const metrics = SdfFontHandler.getFontMetrics(fontFamily, fontSize); - const verticalAlign = props.verticalAlign; const fontData = fontCache.data; const commonFontData = fontData.common; const designFontSize = fontData.info.size; + const designLineHeight = commonFontData.lineHeight; + const lineHeight = + props.lineHeight || (designLineHeight * fontSize) / designFontSize; const atlasWidth = commonFontData.scaleW; const atlasHeight = commonFontData.scaleH;