mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix(logo): support to longer shuttle names (e.g. TTCAD25a)
This commit is contained in:
@@ -39,7 +39,13 @@ class LogoGenerator:
|
|||||||
f.set_variation_by_axes([700])
|
f.set_variation_by_axes([700])
|
||||||
return f
|
return f
|
||||||
|
|
||||||
draw.text((2, -15), shuttle, fill=255, font=font(88))
|
shuttle_font_size = 88
|
||||||
|
shuttle_y_offset = -15
|
||||||
|
if len(shuttle) > 4:
|
||||||
|
shuttle = shuttle[:-1].upper() + shuttle[-1]
|
||||||
|
shuttle_font_size = 44
|
||||||
|
shuttle_y_offset = 10
|
||||||
|
draw.text((2, shuttle_y_offset), shuttle, fill=255, font=font(shuttle_font_size))
|
||||||
draw.text((2, 68), commit[:8], fill=255, font=font(44))
|
draw.text((2, 68), commit[:8], fill=255, font=font(44))
|
||||||
draw.text((2, 107), commit[8:18], fill=255, font=font(35))
|
draw.text((2, 107), commit[8:18], fill=255, font=font(35))
|
||||||
draw.text((1, 137), commit[18:29], fill=255, font=font(32))
|
draw.text((1, 137), commit[18:29], fill=255, font=font(32))
|
||||||
|
|||||||
Reference in New Issue
Block a user