diff --git a/src/pdf/render/footer.ts b/src/pdf/render/footer.ts index d31588e4..9e4650d1 100644 --- a/src/pdf/render/footer.ts +++ b/src/pdf/render/footer.ts @@ -105,18 +105,27 @@ export function drawFooter( }) } + const partnerLabel = `${dict['footer.in_partnership']} ` const handle = '@paws.iin.harmony' + const partnerLabelW = fonts.bodyRegular.widthOfTextAtSize(partnerLabel, FONT_SIZE) const handleW = fonts.bodyRegular.widthOfTextAtSize(handle, FONT_SIZE) - const handleX = width - MARGIN_X - handleW + const partnerX = width - MARGIN_X - partnerLabelW - handleW + page.drawText(partnerLabel, { + x: partnerX, + y: textBaseY, + size: FONT_SIZE, + font: fonts.bodyRegular, + color: muted, + }) page.drawText(handle, { - x: handleX, + x: partnerX + partnerLabelW, y: textBaseY, size: FONT_SIZE, font: fonts.bodyRegular, color: accent, }) addLinkAnnotation(page, { - x: handleX, + x: partnerX + partnerLabelW, y: textBaseY - 2, width: handleW, height: FONT_SIZE + 4,