title: C# Use different font size on a line in richtextbox
body: <p>how do we use different font size on a line in the <code>RichTextBox</code>? Let say I want the first word to be font 10 but the second word on the same line I want it to be 20. I'm using the below:</p>
  
  <pre><code>    private void textBox10_TextChanged(object sender, EventArgs e)
      {
          richTextBox2.Font = new Font("Microsoft San Serif", 12);
          richTextBox2.Text = "\n\n" + textBox10.Text;         
      }
  </code></pre>
  
  <p>But it apply to whole text on the line...</p>