From c85641371e4133ec9e7cf258e1171475b88eedf0 Mon Sep 17 00:00:00 2001 From: Kenneth Obsequio Date: Mon, 20 Jul 2026 14:26:01 +0800 Subject: [PATCH] use Arimo instead of Arial font Signed-off-by: Kenneth Obsequio --- Dockerfile | 4 ++++ templates/certificate.typ | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d90d2c5..5e8eb7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,10 @@ RUN npm install -g pm2 sequelize-cli # Not available as an apk package, so lift the binary out of pandoc/typst. COPY --from=typst /usr/bin/typst /usr/local/bin/typst +# Arimo is metric-compatible with Arial (open license — real Arial can't be +# bundled). certificate.typ references it by this family name. +RUN apk add --no-cache font-arimo && fc-cache -f 2>/dev/null || true + WORKDIR /app # Install production dependencies only diff --git a/templates/certificate.typ b/templates/certificate.typ index 757cb16..ebed857 100644 --- a/templates/certificate.typ +++ b/templates/certificate.typ @@ -14,7 +14,7 @@ margin: (left: 38pt, right: 38pt, top: 28pt, bottom: 38pt), ) -#set text(font: "Arial", size: 11pt, fill: black) +#set text(font: "Arimo", size: 11pt, fill: black) #set par(justify: false, leading: 1.2em) // ─── Header: logo (left) + certificate numbers (right) ────────────────────────