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:
@@ -216,11 +216,6 @@ def render_terminal_svg(
|
|||||||
# Build tspan attributes
|
# Build tspan attributes
|
||||||
attrs = [f'x="{x:.1f}"']
|
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
|
# Foreground color
|
||||||
if span["fg"] != foreground:
|
if span["fg"] != foreground:
|
||||||
attrs.append(f'fill="{span["fg"]}"')
|
attrs.append(f'fill="{span["fg"]}"')
|
||||||
|
|||||||
Reference in New Issue
Block a user