From d9ad18d5af4173ed1e8d4342f4e952ad19d903b3 Mon Sep 17 00:00:00 2001 From: Quentin Roussel Date: Sun, 18 Aug 2024 20:29:07 +0800 Subject: [PATCH] attempt yo fix font --- video.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video.mjs b/video.mjs index d9e8373..094e091 100644 --- a/video.mjs +++ b/video.mjs @@ -12,7 +12,7 @@ async function overlayImage(time_string) { ctx.drawImage(overlay, 0, 0, 853, 479) let text = time_string.substring(8, 10) + ':' + time_string.substring(10, 12); - ctx.font = 'bold 70px sans-serif'; + ctx.font = 'bold 70px'; ctx.fillStyle = 'rgba(0,0,0,0.7)'; ctx.fillText(text, 853 - 250, 479 - 40);