remove redundant font loading
see https://github.com/typekit/webfontloader/blob/fd70d89061c07f019d3c1dfdf1368b0c0962fedf/README.md#custom
This commit is contained in:
@@ -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');
|
|
||||||
}
|
|
||||||
@@ -336,7 +336,6 @@ export class GameScene extends DirtyScene {
|
|||||||
(this.load as any).rexWebFont({
|
(this.load as any).rexWebFont({
|
||||||
custom: {
|
custom: {
|
||||||
families: ["Press Start 2P"],
|
families: ["Press Start 2P"],
|
||||||
urls: ["/resources/fonts/fonts.css"],
|
|
||||||
testString: "abcdefg",
|
testString: "abcdefg",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user