1 2 3 4 5 6
self.onmessage = async function(e) { let a = new FontFace('a', 'url(x)') let b = new FontFace('b', 'url(x)') self.fonts.add(a) self.fonts.add(b) }