censor glitch hotfix

This commit is contained in:
Matthew Olker 2024-06-10 22:51:54 -04:00
parent 725df33600
commit 073c8aaf01
1 changed files with 6 additions and 9 deletions

View File

@ -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));
});
}