attempt yo fix font

This commit is contained in:
Quentin Roussel
2024-08-18 20:29:07 +08:00
parent 7305f7485e
commit d9ad18d5af

View File

@@ -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);