Revert textLength - causes severe character distortion

textLength with lengthAdjust='spacingAndGlyphs' distorts glyphs.
Revert to using only x positioning for character placement.
This commit is contained in:
GitHub Copilot
2026-01-24 18:54:07 +00:00
parent 6ee12bb3b5
commit 7c2a273ec0
-5
View File
@@ -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"]}"')