I am using the new OffscreenCanvas released in Chrome 69 and cannot seem to render custom loaded fonts that render to ordinary canvases just fine.
Is there a trick to getting a custom font available in the worker so that the OffscreenCanvas can access it?
You should be able to use the FontFace and FontFaceSet interfaces of the CSS Font Loading API from within a Worker.
The main difference is that instead of accessing through
document.fonts
, the FontFaceSet is stored asself.fonts
directly.