Problems with using canvaskit-wasm:
canvas kit-wasm seems to not support multi-fonts and also the fallback font.
Because of this we cannot easily render emoji… Otherwise we must build our own font switching algorithm.
The current image generation code was created before Satori was released so the tool choice you see here is quite outdated (the upside is that it is lightweight (no need to fire up Google Chrome to take a screenshot) and it is cross platform (all wasm, no need for native libs, and fonts render the same way on all platforms)).
Going forward one way to improve the image generation may be to use something like Satori + resvg (Vercel does this). But IMO it’s not a high priority.
What to explore
Problems with using
canvaskit-wasm:Because of this we cannot easily render emoji… Otherwise we must build our own font switching algorithm.
The current image generation code was created before Satori was released so the tool choice you see here is quite outdated (the upside is that it is lightweight (no need to fire up Google Chrome to take a screenshot) and it is cross platform (all wasm, no need for native libs, and fonts render the same way on all platforms)).
Going forward one way to improve the image generation may be to use something like Satori + resvg (Vercel does this). But IMO it’s not a high priority.
What to explore