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