Add one-space gap between watermark icons and text (preview + export)

This commit is contained in:
2026-09-08 12:06:07 +07:00
parent b64d7245c9
commit 58335d8cd1
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ export async function processAndExportPhoto(
const yOffset = height - (frameId === 'polaroid' ? height * 0.15 : fontSize * 1.5);
const xOffset = frameId === 'polaroid' ? width * 0.08 : fontSize * 1.2;
const gap = Math.round(fontSize * 1.2); // icon box (~1em) + spacing
const gap = Math.round(fontSize * 1.6); // icon box (~1em) + one clear mono space (~0.6em)
canvas.drawText('📍', xOffset, yOffset - fontSize * 1.4, textPaint, iconFont);
canvas.drawText(locationName, xOffset + gap, yOffset - fontSize * 1.4, textPaint, font);