title: System.Drawing: how to control font weight?
body: <p>I find I can't change the font weight even though I am creating it via win32 pinvoke. I'm using Graphics.DrawString to use the font. I'm stumped and can't find anything on this. </p>
  
  <pre><code>[DllImport("gdi32.dll")]
  static extern IntPtr CreateFont(int nHeight, int nWidth, int nEscapement,
     int nOrientation, int fnWeight, uint fdwItalic, uint fdwUnderline, uint
     fdwStrikeOut, uint fdwCharSet, uint fdwOutputPrecision, uint
     fdwClipPrecision, uint fdwQuality, uint fdwPitchAndFamily, string lpszFace);
  
  private void CreateLabelFont()
  {
      // Remove -13 magic number later.
      IntPtr hFont = CreateFont(-13, 0, 0, 0, 100, 0, 0, 0, 1, 0, 0, 0, 0, "Arial\0");
      labelFont = Font.FromHfont(hFont);
  }
  </code></pre>