pango.Layout.get_pixel_size allocates a whopping 5mb of memory.
Did the pango people have any advice?