Nikolay Sivov : dwrite: Improve parameter validation in GetGdiCompatibleGlyphAdvances(), add some tests.