From 7c2a273ec04a7b44b07348031fccea5344d6862b Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Sat, 24 Jan 2026 18:54:07 +0000 Subject: [PATCH] Revert textLength - causes severe character distortion textLength with lengthAdjust='spacingAndGlyphs' distorts glyphs. Revert to using only x positioning for character placement. --- src/textual_webterm/svg_exporter.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/textual_webterm/svg_exporter.py b/src/textual_webterm/svg_exporter.py index e2b7978..1fd9d28 100644 --- a/src/textual_webterm/svg_exporter.py +++ b/src/textual_webterm/svg_exporter.py @@ -216,11 +216,6 @@ def render_terminal_svg( # Build tspan attributes attrs = [f'x="{x:.1f}"'] - # Use textLength to enforce exact character spacing for alignment - span_width = columns * char_width - attrs.append(f'textLength="{span_width:.1f}"') - attrs.append('lengthAdjust="spacingAndGlyphs"') - # Foreground color if span["fg"] != foreground: attrs.append(f'fill="{span["fg"]}"')