This commit is contained in:
parent
42838864af
commit
a42d1d0323
@ -1,11 +1,11 @@
|
|||||||
import { type SpriteSpec, SPRITE_SPECS } from ".";
|
import { type SpriteSpec, SPRITE_SPECS } from ".";
|
||||||
import { SOUND_SPECS, SoundSpec } from "./sounds";
|
import { SOUND_SPECS, SoundSpec } from "./sounds";
|
||||||
|
|
||||||
const BASE_URL = document.location;
|
const BASE_URL = import.meta.env.BASE_URL ?? document.location;
|
||||||
|
|
||||||
export const FONT = new FontFace(
|
export const FONT = new FontFace(
|
||||||
"scientifica",
|
"scientifica",
|
||||||
`url(${BASE_URL}/fonts/scientifica.ttf)`
|
`url(${BASE_URL}fonts/scientifica.ttf)`
|
||||||
);
|
);
|
||||||
FONT.load().then((font) => {
|
FONT.load().then((font) => {
|
||||||
document.fonts.add(font);
|
document.fonts.add(font);
|
||||||
|
Loading…
Reference in New Issue
Block a user