title: Get Font used in .txt file before loadind to richTextBox
body: <p>I need to get the font set in .txt file (or .rtf) before loading it to a richTextBox. If I don't do this the default font is set and the richTextBox.Text's font is different than the one set in the original .txt file...</p>
  
  <p>I'm dealing with a custom TextPanel inherited from RichTextBox.</p>
  
  <pre><code>    if (File.Exists(file))
              {
                  if (Path.GetExtension(file) == ".txt")
                  {
                      // I need to get the font here from the path "file" .txt document
                      textPanel = new TextPanel(file, this);
                      textPanel.LoadFile(file, RichTextBoxStreamType.PlainText);
  </code></pre>
  
  <p>I'm sure there's a simple way to do this, just can't find it :(</p>