Text metrics in the diagrams backend are now returned correctly.