ClearType Rendering problems with DirectWrite C++
-
As a warmup for a more complex project, I had started to test doing layouts and rendering of text with DirectWrite. And for a start, I had used the snippets from the Microsoft Dev Center and created a complete minimal test application in my Visual Studio 2015 with Windows 10. The good part is that I had some rendered text as a result in my window. The bad part is that the result (see this this screenshot) is far away from good readable text. My understanding of the relating MSDN documentation is that ClearType is enabled by default. The title bar text of the window is obviously set up with text in ClearType. I guess I missed some setting in the DWrite factory but I do not know which one. Does anybody have an advice for me? For anybody who wants to take a look at my application: The project can be found here as ZIP file. The coding of my test application was not thought to be an example for a well structured program; its sole purpose was to find out how text rendering in ClearType could be accomplished. (A short note: I had originally posted this in the Managed C++/CLI forum, and I received the advice that I might be better off in this forum. So I modified my test into a minimal C++ application - with the same sad result -, and I am reposting it here)