How to alternate between bold and regular font in System.Drawing
<p>I am using the System.Drawing tools to create a graphic. The graphic has a lot of text labels in it.</p>

<p>I create the font:</p>

<pre><code>var font = new Font("Verdana", 10);
</code></pre>

<p>and then, for each label, make the text bold, or not using this:</p>

<pre><code>font = new Font(font, FontStyle.Bold);
font = new Font(font, FontStyle.Regular);
</code></pre>

<p>I want to store all the text for the labels in a database along with font size and whether it is to be bold or not.</p>

<p>Say I return a list of values from a database like, for example:</p>

<p>10, bold</p>

<p>12, regular</p>

<p>10, bold,</p>

<p>14, bold</p>

<p>10, regular</p>

<p>and put those values in a list object with properties of myfontSize and myfontStyle and loop through the list ... what is the best way to modify my System.Drawing font to reflect the changes in Font Size and Font Weight required in each iteration?</p>
