[PATCH v2 3/7] gdi32: Add helper functions to compute the glyph metrics.