()
| 72 | } |
| 73 | |
| 74 | export async function awaitFontsLoaded() { |
| 75 | const promises = [document.fonts.load('16px "Karla"'), document.fonts.load("15px 'Inconsolata'")] |
| 76 | await Promise.all(promises) |
| 77 | } |
| 78 | |
| 79 | export function preloadFonts() { |
| 80 | stringWidth('loadfontplz') |