[PATCH v4 2/4] gdi32: Add helper functions to compute the glyph metrics.