summaryrefslogtreecommitdiff
path: root/plymouth-assets/generate_text_assets.py
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-10-09 12:53:18 +0200
committerNippy <nippy@Nippy-Mac-mini.local>2026-10-09 12:53:18 +0200
commit224347aee80daad096556250a2939d9e3fd31880 (patch)
tree9ef025a5ecb08f8a70bc7d15606916d3b1fa3be7 /plymouth-assets/generate_text_assets.py
parent44d4aa3cb4688ffb45ef234f9cebbe00dc51b8d0 (diff)
downloadRaveOS-build-iso-224347aee80daad096556250a2939d9e3fd31880.tar.gz
RaveOS-build-iso-224347aee80daad096556250a2939d9e3fd31880.zip
fix
Diffstat (limited to 'plymouth-assets/generate_text_assets.py')
-rw-r--r--plymouth-assets/generate_text_assets.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/plymouth-assets/generate_text_assets.py b/plymouth-assets/generate_text_assets.py
index 1b6ee4a..068e2e0 100644
--- a/plymouth-assets/generate_text_assets.py
+++ b/plymouth-assets/generate_text_assets.py
@@ -1,23 +1,18 @@
#!/usr/bin/env python3
-"""Wordmark + tagline + status PNG-k generalasa a Plymouth temahoz.
-Placeholder fontokkal (nincs Bebas Neue a rendszeren): Noto Sans Condensed
-ExtraBold a wordmarkhoz, Ubuntu Mono a tagline/status szoveghez.
-"""
from PIL import Image, ImageDraw, ImageFont
-SCALE = 3 # 3x render, majd a Plymouth script kicsinyiti - crisp marad
+SCALE = 3
WORDMARK_FONT = "/usr/share/fonts/noto/NotoSans-CondensedExtraBold.ttf"
MONO_FONT = "/usr/share/fonts/ubuntu/Ubuntu-B.ttf"
MONO_FONT_REGULAR = "/usr/share/fonts/ubuntu/Ubuntu-R.ttf"
-RAVE_COLOR = (232, 232, 230, 255) # #e8e8e6
-OS_COLOR = (98, 160, 82, 255) # #62a052
-MUTED_COLOR = (122, 125, 130, 255) # #7a7d82
+RAVE_COLOR = (232, 232, 230, 255)
+OS_COLOR = (98, 160, 82, 255)
+MUTED_COLOR = (122, 125, 130, 255)
def draw_tracked_text(draw, xy, text, font, fill, tracking):
- """Szoveg rajzolasa kezi betukoz-nyujtassal (PIL-nek nincs natix tracking)."""
x, y = xy
for ch in text:
draw.text((x, y), ch, font=font, fill=fill)
@@ -41,7 +36,7 @@ def make_wordmark():
d = ImageDraw.Draw(tmp)
w_rave = measure_tracked(d, "RAVE", font, tracking)
w_os = measure_tracked(d, "OS", font, tracking)
- gap = tracking # a ket szo kozott is annyi hely mint a betukoz
+ gap = tracking
total_w = int(w_rave + gap + w_os) + 20
ascent, descent = font.getmetrics()
total_h = ascent + descent + 10