freekmurze, 💡 TIL #PHP has a function that can calculate the bounding box coordinates of a string that’s rendered in a given font
https://www.php.net/manual/en/function.imagettfbbox.phpI’m using this function in an upcoming feature of Oh Dear: status badges. These badges are svgs with variable text (and length)