This article is just to give you a brief idea about SetCompatibleTextRenderingDefault and what happens if we pass true instead of…