style(pmr): 라벨 레이아웃 미세 조정

- 상단 지그재그 ↔ 이름 간격 축소 (15 → 8)
- 보관조건 폰트 크기 증가 (22 → 28)
This commit is contained in:
thug0bin 2026-03-12 17:31:57 +09:00
parent 4944669470
commit 80f7f0ac80

View File

@ -914,7 +914,7 @@ def create_label_image(patient_name, med_name, add_info='', dosage=0, frequency=
lines.append(current_line)
return lines if lines else [text]
y = 15
y = 8 # 상단 지그재그 ↔ 이름 간격 (공간 확보를 위해 축소)
# 환자명 (띄어쓰기)
spaced_name = " ".join(patient_name) if patient_name else ""
@ -1014,7 +1014,7 @@ def create_label_image(patient_name, med_name, add_info='', dosage=0, frequency=
# 모든 보관조건 표시 (실온보관, 냉장보관 등)
storage_text = f"* {storage_conditions}"
try:
storage_font = ImageFont.truetype(font_path, 22)
storage_font = ImageFont.truetype(font_path, 28)
except:
storage_font = ImageFont.load_default()
bbox_storage = draw.textbbox((0, 0), storage_text, font=storage_font)