Underline is drawn outside of rectangle reported by DrawText with DT_CALCRECT
问题 Symptoms I'm having an issue with the recent version 2.0 of the Lato font in its "Regular" variant. This issue doesn't appear with Lato 1.0. It seems that the underline is drawn 1px below the rectangle reported by DrawText() with the DT_CALCRECT flag. In the following screenshots the calculated rectangle is indicated by the blue background. I've added 10px to the right of this rectangle so you can see the discrepancy to the position where the underline is drawn. Lato 2.0 - underline is