Fix rendering of italic fonts during tests on Windows.