https://learn.microsoft.com/en-us/windows/win32/api/gdiplusgraphics/nf-gdiplusgraphics-graphics-measuredriverstring
Graphics::MeasureDriverString (gdiplusgraphics.h) - Win32 apps | Microsoft Learn
The Graphics::MeasureDriverString method measures the bounding box for the specified characters and their corresponding positions.
graphicsappsmicrosoftlearn