From 2d9a91487c90038135b734f8d26fbd7ace4525ee Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 1 Jul 2021 23:13:13 +0000 Subject: [PATCH] =?UTF-8?q?Usar=20px=20en=20vez=20de=20rem=20para=20el=20t?= =?UTF-8?q?ama=C3=B1o=20del=20texto=20para=20funcionar=20en=20WebKit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index f3d287f..df68295 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -46,7 +46,7 @@ export function drawText( maxWidth?: number; } ): Box { - juego.ctx.font = `${bold ? "bold " : ""}${size}rem sans-serif`; + juego.ctx.font = `${bold ? "bold " : ""}${size * 12}px sans-serif`; juego.ctx.textAlign = align; juego.ctx.textBaseline = baseline; juego.ctx.fillText(text, pos.x, pos.y, maxWidth);