David, Thomas, I've just tried this patch on a larger area, in the case where multiple categories had to scale and it turns out the patch is missing something. It doesn't save and restore the font size, so all categories after the first to rescale end up smaller even if not needed.
I could have it save the fd.get_size and restore it, fixing this for v2, but it's probably better to just rework it to separate out the measuring from the rescaling and compute a global font size for all headers before the drawing takes place. So that's what I'll do. Best regards, Jeroen.
