title: How to set a font for a UI Text in Unity 3D programmatically
body: <p>in my game I have a UI Text that I've called "label", and I want to set its font programmatically. I've tried to do this:</p>
  
  <pre><code>label.GetComponent&lt;Text&gt;().font="Arial";
  </code></pre>
  
  <p>I get an error because the font attribute doesn't want a string but a Font. So how can I set the font to Arial programmatically?</p>