The complaint illustrates how text measurement can be broken by a drawing callback. This is because overlays are setting global_font_size value, which is used by subsequent drawing, but does not explicitly set size on the global_font_default font, which is needed for measurement. Pull Request: https://projects.blender.org/blender/blender/pulls/113868