Skip to content

Commit

Permalink
Update imports.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapericlp authored Jan 26, 2024
1 parent 7f3fe34 commit b5b853c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions hydra/imports.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
await loadScript("https://hyper-hydra.glitch.me/hydra-text.js")
await loadScript("https://hyper-hydra.glitch.me/hydra-tap.js")
const PERiPERiDEFAULTS => async () => {
await loadScript("https://hyper-hydra.glitch.me/hydra-text.js")
await loadScript("https://hyper-hydra.glitch.me/hydra-tap.js")

const myFont = new FontFace('PressStart', 'url(https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivNm4I81.woff2');
await myFont.load();
document.fonts.add(myFont);

hydraText.font = "PressStart"
hydraText.lineWidth = "2%"
const myFont = new FontFace('PressStart', 'url(https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivNm4I81.woff2');
await myFont.load();
document.fonts.add(myFont);

hydraText.font = "PressStart"
hydraText.lineWidth = "2%"
}

0 comments on commit b5b853c

Please sign in to comment.