fix: QR 라벨 개인정보 문구가 라벨 영역 내 표시되도록 간격 조정
- 포인트/안내 문구 간격 축소로 306px 라벨 내 수용 - y 최종 위치: 약 303px (라벨 높이 306px) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1717f4c6c2
commit
10087cac5f
@ -152,19 +152,19 @@ def create_qr_receipt_label(qr_url, transaction_id, total_amount, claimable_poin
|
|||||||
for offset in [(0, 0), (1, 0), (0, 1), (1, 1)]:
|
for offset in [(0, 0), (1, 0), (0, 1), (1, 1)]:
|
||||||
draw.text((x_margin + offset[0], y + offset[1]), amount_text,
|
draw.text((x_margin + offset[0], y + offset[1]), amount_text,
|
||||||
font=font_amount, fill=0)
|
font=font_amount, fill=0)
|
||||||
y += 50
|
y += 46 # 50 → 46으로 축소
|
||||||
|
|
||||||
# 적립 포인트 (굵게)
|
# 적립 포인트 (굵게)
|
||||||
points_text = f"적립예정: {claimable_points:,}P"
|
points_text = f"적립예정: {claimable_points:,}P"
|
||||||
for offset in [(0, 0), (1, 0), (0, 1), (1, 1)]:
|
for offset in [(0, 0), (1, 0), (0, 1), (1, 1)]:
|
||||||
draw.text((x_margin + offset[0], y + offset[1]), points_text,
|
draw.text((x_margin + offset[0], y + offset[1]), points_text,
|
||||||
font=font_points, fill=0)
|
font=font_points, fill=0)
|
||||||
y += 55
|
y += 42 # 45 → 42로 축소
|
||||||
|
|
||||||
# 안내 문구
|
# 안내 문구
|
||||||
guide_text = "QR 촬영하고 포인트 받으세요!"
|
guide_text = "QR 촬영하고 포인트 받으세요!"
|
||||||
draw.text((x_margin, y), guide_text, font=font_small, fill=0)
|
draw.text((x_margin, y), guide_text, font=font_small, fill=0)
|
||||||
y += 35
|
y += 26 # 30 → 26으로 축소
|
||||||
|
|
||||||
# 개인정보 동의 안내 (작은 글씨)
|
# 개인정보 동의 안내 (작은 글씨)
|
||||||
privacy_text = "(QR 스캔 시 개인정보 수집·이용에 동의한 것으로 간주됩니다)"
|
privacy_text = "(QR 스캔 시 개인정보 수집·이용에 동의한 것으로 간주됩니다)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user