mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Center text horizontally in SVG logo
This commit is contained in:
parent
f032606f32
commit
0b79fd0a8e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue