--- title: "How to: Use Antialiasing with Text" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "strings [Windows Forms], smoothing drawn" - "antialiasing [Windows Forms], using with text" - "text [Windows Forms], smoothing" - "text [Windows Forms], antialiasing" - "strings [Windows Forms], antialiasing when drawing" ms.assetid: 48fc34f3-f236-4b01-a0cb-f0752e6d22ae --- # How to: Use Antialiasing with Text *Antialiasing* refers to the smoothing of jagged edges of drawn graphics and text to improve their appearance or readability. With the managed GDI+ classes, you can render high quality antialiased text, as well as lower quality text. Typically, higher quality rendering takes more processing time than lower quality rendering. To set the text quality level, set the property of a to one of the elements of the enumeration ## Example The following code example draws text with two different quality settings. [!code-csharp[System.Drawing.FontsAndText#21](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Drawing.FontsAndText/CS/Class1.cs#21)] [!code-vb[System.Drawing.FontsAndText#21](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.FontsAndText/VB/Class1.vb#21)] The following illustration shows the output of the example code: ![Screenshot that shows text with two different quality settings.](./media/how-to-use-antialiasing-with-text/antialiasing-text-quality-settings.png) ## Compiling the Code The preceding code example is designed for use with Windows Forms, and it requires `e`, which is a parameter of . ## See also - [Using Fonts and Text](using-fonts-and-text.md)