November 30th, 2023 · 6min read
Rendering SVG with Text to HTML Canvas
I’ve spent a ton of time trying to get multiline text in custom fonts to render onto HTML canvasses. In the end, I used SVGs to do so, but that came with quite some unexpected pitfalls. Here’s some insight into how I dealt with them.
February 18th, 2023 · 10min read
Auto-Generated SVG Sprites in Vite
In this tutorial, I share my current method of creating SVG sprites containing icons automatically from the contents of a folder by using a custom Vite plugin, including how to optimize them with SVGO