gdi32: Add a few helper functions for computing font metrics.