style: Center text horizontally in SVG logo

This commit is contained in:
Paul Gauthier (aider) 2025-03-19 21:45:58 -07:00
parent f032606f32
commit 0b79fd0a8e

View file

@ -34,7 +34,7 @@ def generate_svg_with_embedded_font(font_path, text="aider", color="#14b014", ou
char_width = 40
width = len(text) * char_width + 40 # Add padding
height = 100
text_x = 20
text_x = width / 2 # Center point of the SVG width
text_y = 65
# Create the SVG with embedded font
@ -51,6 +51,7 @@ def generate_svg_with_embedded_font(font_path, text="aider", color="#14b014", ou
font-family: 'GlassTTYVT220', monospace;
font-size: 60px;
fill: {color};
text-anchor: middle; /* Center the text horizontally */
}}
.background {{
fill: black;