Well yes and no, as based on the XOJO Documentation it says that " Graphics.StringHeight - This item was deprecated in version 2019r2 .
Please use Graphics.TextHeight as a replacement." so, normally based on official documentation that part is deprecated and we should use " Graphics.TextHeight" that in theory should do same thing, but as you said It doesn’t so deprecated or not, we still can use it but you cannot deprecate something , change the usage of it, usually when you deprecate something you replace it with something that works better or it should work better than the previous and do the same functions or more, in this case it does less and does not do whatever it was supposed to do. So in our case if we want same functionality as StringHeight what we should use that it is not deprecated ?
I get same results for h and h2. On my system with the default font, the result is 57.
Dim txt As String = "this is a long sentence that should wrap and have several lines"
Dim h as double = g.stringheight(txt, 100) //Result is 57
dim h2 as double = g.TextHeight(txt, 100) //Result is 57
Dim lineHeight As double = g.TextHeight //Result is 15