From f87704b2efe78ea48325f00df23d822adb08ed99 Mon Sep 17 00:00:00 2001 From: Lukas Hass Date: Tue, 1 Feb 2022 01:29:38 +0100 Subject: [PATCH] remove redundant font loading see https://github.com/typekit/webfontloader/blob/fd70d89061c07f019d3c1dfdf1368b0c0962fedf/README.md#custom --- front/public/resources/fonts/fonts.css | 5 ----- front/src/Phaser/Game/GameScene.ts | 1 - 2 files changed, 6 deletions(-) delete mode 100644 front/public/resources/fonts/fonts.css diff --git a/front/public/resources/fonts/fonts.css b/front/public/resources/fonts/fonts.css deleted file mode 100644 index a3d3cf71..00000000 --- a/front/public/resources/fonts/fonts.css +++ /dev/null @@ -1,5 +0,0 @@ -/*This file is a workaround to allow phaser to load directly this font */ -@font-face { - font-family: "Press Start 2P"; - src: url("/fonts/press-start-2p-latin-400-normal.woff2") format('woff2'); -} \ No newline at end of file diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 23a211a6..b654efc6 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -336,7 +336,6 @@ export class GameScene extends DirtyScene { (this.load as any).rexWebFont({ custom: { families: ["Press Start 2P"], - urls: ["/resources/fonts/fonts.css"], testString: "abcdefg", }, });