title: VB.NET: How to compose and apply a font to a label in runtime?
body: <p>I'm developing a Windows Forms Application in Visual Basic .NET with Visual Studio 2008.</p>
  
  <p>I'm trying to compose fonts (Family name, font size, and the styles) at runtime, based on user preferences, and apply them to labels.</p>
  
  <p>For the sake of both a simplier user interface, and compatibility between more than one machine requiring to use the same font, I'll <strong>NOT</strong> use the <strong>InstalledFontCollection</strong>, but a set of buttons that will set few selected fonts, that I know to be present in all machines (fonts like Verdana).</p>
  
  <p>So, I have to make a Public Sub on a Module that will create fonts, but I don't know how to code that. There are also four CheckBoxes that set the styles, Bold, Italic, Underline and Strikeout.</p>
  
  <p>How should I code this? The <strong>SomeLabel.Font.Bold</strong> property is readonly, and there seems to be a problem when converting a string like "Times New Roman" to a FontFamily type. (It just says it could not do it)</p>
  
  <p>Like on</p>
  
  <pre><code>Dim NewFontFamily As FontFamily = "Times New Roman"
  </code></pre>
  
  <p>Thanks in advance.</p>