Fix missed raw draw.text in render_phase_closeup
The previous commit replaced the caption block in composite_full_moon but missed render_phase_closeup because that block had no comment to match the replace_all pattern. Both caption sites now go through _draw_caption() so the Unicode / font fix applies everywhere. https://claude.ai/code/session_01HkTxpNSTWtViZzxbrbKytR
This commit is contained in:
+1
-2
@@ -355,8 +355,7 @@ def render_phase_closeup(
|
||||
|
||||
if caption:
|
||||
draw = ImageDraw.Draw(bg)
|
||||
draw.text((24, output_size[1] - 44), caption, fill=(0, 0, 0))
|
||||
draw.text((22, output_size[1] - 46), caption, fill=(220, 220, 220))
|
||||
_draw_caption(draw, caption, (22, output_size[1] - 48), output_size[0])
|
||||
|
||||
Path(out_path).parent.mkdir(parents=True, exist_ok=True)
|
||||
bg.save(out_path, quality=92)
|
||||
|
||||
Reference in New Issue
Block a user