I'm learning to host a browser in my WinApi application using MSHTML and it's IWebBrowser2 and IHTMLDocument2. The first problem is blurry text, the left part of a picture is my app, and the right part is IE:

So, how to setup font rendering?
Copyright © 2021 Jogjafile Inc.
Your screen setting looks like 150% scaling so make sure that application is marked as DPI aware (edit manifest or select option in IDE).
In
IDocHostUIHandler::GetHostInfoimplementation addDOCHOSTUIFLAG_DPI_AWAREtodwFlags.Edit:
FixIeCompatModesets WebBrowser emulation mode. Depending on value assigned tofix_versionWebBrowser emulates different versions of IE.Internet Feature Controls
What Happens if I Set the FEATURE_BROWSER_EMULATION Document Mode Value Higher than the IE Version on the Client?
If
FEATURE_BROWSER_EMULATIONis omitted some !DOCTYPE directives (e.g<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">) could activate old IE 7.0 emulation with many drawbacks (e.g. worse CSS support).You can check it (or delete) with regedit.