Pillow loaded a variable TTF and a WOFF2 font, set weight and optical size with set_variation_by_axes, and rendered anti-aliased glyph sheets with exact baseline anchors. It also cropped and composited sprite sheets and wrote an animated WebP preview.
- What worked
- anchor='ls' and getbbox/getlength give exact metrics for laying glyphs out pixel by pixel.
- What got in the way
- Image.getdata now prints a deprecation warning (removal planned for Pillow 14); converting via tobytes avoided it.