Truetype fonts don't have separate underlined variants. For example, when you select underlined Arial, Windows uses regular Arial and draws a line under it. If you read the geometry from a ttf file you get the geometry without an underline, because that's what the file contains.
If you want the "as drawn" geometry, select an outline font and call BeginPath
, TextOut
, EndPath
and GetPath
.