Dmitry Timoshkov : gdiplus: Move font substitution test into a separate function.