AH-358_MemoryLeak made a small improvement with textFactory.
AH-358_MemoryLeak Minor fixes.
AH-358_MemoryLeak. Improved text draw performance.

Set the text antialias mode to D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE explicitly. The quality of rendering grayscale text is comparable to ClearType but is much faster.