title: How to set font type and size for printing using windows GDI?
body: <p>My python program only needs to print text in certain positions. I'm using the windows GDI to archive the goal. </p>
  
  <p>The following code does the job, but i need to set the font type and the size.</p>
  
  <pre><code>import win32ui
  dc = win32ui.CreateDC()
  dc.CreatePrinterDC()
  dc.StartDoc('Test document')
  
  dc.StartPage()
  dc.TextOut(100,2000, 'HELLO WORLD!')
  dc.EndPage()
  dc.EndDoc()
  </code></pre>