censor glitch hotfix
This commit is contained in:
parent
725df33600
commit
073c8aaf01
|
@ -88,17 +88,14 @@ export interface Localizable {
|
||||||
localize(): void;
|
localize(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const alternativeFonts = {
|
const fonts = [
|
||||||
"ko": [
|
new FontFace("emerald", "url(./fonts/pokemon-emerald-pro.ttf"),
|
||||||
new FontFace("emerald", "url(./fonts/PokePT_Wansung.ttf)"),
|
new FontFace("emerald", "url(./fonts/PokePT_Wansung.ttf)"),
|
||||||
],
|
];
|
||||||
};
|
|
||||||
|
|
||||||
function initFonts() {
|
function initFonts() {
|
||||||
Object.keys(alternativeFonts).forEach((language: string) => {
|
fonts.forEach((fontFace: FontFace) => {
|
||||||
alternativeFonts[language].forEach((fontface: FontFace) => {
|
fontFace.load().then(f => document.fonts.add(f)).catch(e => console.error(e));
|
||||||
fontface.load().then(f => document.fonts.add(f)).catch(e => console.error(e));
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue