From 073c8aaf01368f549677a87d8b5595f2c71381fb Mon Sep 17 00:00:00 2001 From: Matthew Olker Date: Mon, 10 Jun 2024 22:51:54 -0400 Subject: [PATCH] censor glitch hotfix --- src/plugins/i18n.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 766a4197818..0cea1d197e5 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -88,17 +88,14 @@ export interface Localizable { localize(): void; } -const alternativeFonts = { - "ko": [ - new FontFace("emerald", "url(./fonts/PokePT_Wansung.ttf)"), - ], -}; +const fonts = [ + new FontFace("emerald", "url(./fonts/pokemon-emerald-pro.ttf"), + new FontFace("emerald", "url(./fonts/PokePT_Wansung.ttf)"), +]; function initFonts() { - Object.keys(alternativeFonts).forEach((language: string) => { - alternativeFonts[language].forEach((fontface: FontFace) => { - fontface.load().then(f => document.fonts.add(f)).catch(e => console.error(e)); - }); + fonts.forEach((fontFace: FontFace) => { + fontFace.load().then(f => document.fonts.add(f)).catch(e => console.error(e)); }); }