[Bug 33378] measuring/painting strings needs better tests