RichTextBox’s font changes automatically in C# You need to clear these two flags IMF_DUALFONT and IMF_AUTOFONT to keep font unchanged.