diff --git a/generate_hitster_cards.py b/generate_hitster_cards.py index fa3a2f8..5bd6ae1 100644 --- a/generate_hitster_cards.py +++ b/generate_hitster_cards.py @@ -193,9 +193,10 @@ def draw_card_back(c: canvas.Canvas, x: float, y: float, card: TrackCard): label = f"{card.title} — {card.artists}" text_w = CARD_W - 2 * pad lines = wrap_text(label, text_w, "Helvetica", 8, c) - base_y = y + pad + (len(lines) - 1) * 3.8 + line_height = 9.5 + base_y = y + pad + (len(lines) - 1) * line_height for i, line in enumerate(lines[:3]): - c.drawCentredString(x + CARD_W / 2.0, base_y - i * 3.8, line) + c.drawCentredString(x + CARD_W / 2.0, base_y - i * line_height, line) def build_cards(tracks: List[dict], qr_size_mm: float) -> List[TrackCard]: cards: List[TrackCard] = []