From be27c16a732c3a47a50915f68d72726bfb52b46e Mon Sep 17 00:00:00 2001 From: Magoninho Date: Sat, 29 Jan 2022 17:14:02 -0300 Subject: [PATCH] fixed font --- dist/EjectionTextGenerator.js | 2 +- dist/EjectionTextGenerator.js.map | 2 +- src/EjectionTextGenerator.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/EjectionTextGenerator.js b/dist/EjectionTextGenerator.js index 017d9b9..aefb9a4 100644 --- a/dist/EjectionTextGenerator.js +++ b/dist/EjectionTextGenerator.js @@ -8,7 +8,7 @@ export default class EjectionTextGenerator { this.text = this.astronaut.isImpostor() ? `${name} was The Impostor` : `${name} was not The Impostor`; } render(ctx) { - ctx.font = '20px sans'; + ctx.font = '20px verdana, Arial, sans'; if (this.counter >= 1 && !this.complete) { this.final += this.text[this.charIndex]; this.counter = 0; diff --git a/dist/EjectionTextGenerator.js.map b/dist/EjectionTextGenerator.js.map index 6049d8f..855345a 100644 --- a/dist/EjectionTextGenerator.js.map +++ b/dist/EjectionTextGenerator.js.map @@ -1 +1 @@ -{"version":3,"file":"EjectionTextGenerator.js","sourceRoot":"","sources":["../src/EjectionTextGenerator.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,qBAAqB;IAQzC,YAAY,IAAY,EAAE,SAAoB;QAPtC,UAAK,GAAW,EAAE,CAAC;QAEnB,aAAQ,GAAY,KAAK,CAAC;QAC1B,cAAS,GAAW,CAAC,CAAC;QACtB,YAAO,GAAW,CAAC,IAAI,CAAC;QAI/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAAG,IAAI,uBAAuB,CAAC;IACvG,CAAC;IAEM,MAAM,CAAC,GAA6B;QAC1C,GAAG,CAAC,IAAI,GAAG,WAAW,CAAC;QAEvB,IAAI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AG,QAAQ,CAAC;QACzB,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC;IAEM,UAAU;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD"} \ No newline at end of file diff --git a/src/EjectionTextGenerator.ts b/src/EjectionTextGenerator.ts index a839f04..569f1f8 100644 --- a/src/EjectionTextGenerator.ts +++ b/src/EjectionTextGenerator.ts @@ -14,7 +14,7 @@ export default class EjectionTextGenerator { } public render(ctx: CanvasRenderingContext2D) { - ctx.font = '20px sans'; + ctx.font = '20px verdana, Arial, sans'; if (this.counter >= 1 && !this.complete) { this.final += this.text[this.charIndex];