[PATCH 03/12] gdi32: Add a helper function to compute the glyph metrics.