>>>As for design time, maybe someone can help you more on this. >> >>How would I calculate it at run time? > >The same as the builder is doing it at design time.
Which is probably using FONTMETRIC(6) or FONTMETRIC(7), or some combination of the two....