mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
copy
This commit is contained in:
parent
9b8606535d
commit
dfbdb43c31
2 changed files with 9 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<svg width="240" height="100" viewBox="0 0 240 100" xmlns="http://www.w3.org/2000/svg">
|
<svg width="200" height="60" viewBox="0 0 200 60" xmlns="http://www.w3.org/2000/svg">
|
||||||
<style>
|
<style>
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'GlassTTYVT220';
|
font-family: 'GlassTTYVT220';
|
||||||
|
@ -11,11 +11,13 @@
|
||||||
font-family: 'GlassTTYVT220', monospace;
|
font-family: 'GlassTTYVT220', monospace;
|
||||||
font-size: 60px;
|
font-size: 60px;
|
||||||
fill: #14b014;
|
fill: #14b014;
|
||||||
|
text-anchor: middle; /* Center the text horizontally */
|
||||||
|
dominant-baseline: middle; /* Center the text vertically */
|
||||||
}
|
}
|
||||||
.background {
|
.background {
|
||||||
fill: white;
|
fill: white;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<rect class="background" width="240" height="100" x="0" y="0" />
|
<rect class="background" width="200" height="60" x="0" y="0" />
|
||||||
<text x="20" y="65" class="logo-text">aider</text>
|
<text x="100.0" y="37.2" class="logo-text">aider</text>
|
||||||
</svg>
|
</svg>
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
@ -32,10 +32,10 @@ def generate_svg_with_embedded_font(font_path, text="aider", color="#14b014", ou
|
||||||
# Calculate SVG dimensions based on text length
|
# Calculate SVG dimensions based on text length
|
||||||
# These values can be adjusted to modify the appearance
|
# These values can be adjusted to modify the appearance
|
||||||
char_width = 40
|
char_width = 40
|
||||||
width = len(text) * char_width + 40 # Add padding
|
width = len(text) * char_width
|
||||||
height = 100
|
height = 60
|
||||||
text_x = width / 2 # Center point of the SVG width
|
text_x = width / 2 # Center point of the SVG width
|
||||||
text_y = height / 2 # Center point of the SVG height
|
text_y = height * 0.62 # Center point of the SVG height
|
||||||
|
|
||||||
# Create the SVG with embedded font
|
# Create the SVG with embedded font
|
||||||
svg = f"""<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
svg = f"""<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
@ -55,7 +55,7 @@ def generate_svg_with_embedded_font(font_path, text="aider", color="#14b014", ou
|
||||||
dominant-baseline: middle; /* Center the text vertically */
|
dominant-baseline: middle; /* Center the text vertically */
|
||||||
}}
|
}}
|
||||||
.background {{
|
.background {{
|
||||||
fill: black;
|
fill: white;
|
||||||
}}
|
}}
|
||||||
</style>
|
</style>
|
||||||
<rect class="background" width="{width}" height="{height}" x="0" y="0" />
|
<rect class="background" width="{width}" height="{height}" x="0" y="0" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue