title: How to underline text using printf in C
body: <p>I note the question <a href="https://stackoverflow.com/questions/8765938/colorful-text-using-printf-in-c/" title="Colorful text using printf in C">Colorful text using printf in C</a> gives a good example of setting coloured text on the standard console output in Windows. Is there something similar that allows output to be underlined? Or possibly even bolded or italicised?</p>
  
  <p>EDIT: I tried Lundin's answer on using COMMON_LVB_UNDERSCORE with no luck. Attempting to use AddFontResource() to add arial italic font to try italics gives an error that there is an <code>undefined reference to __imp_AddFontResourceA</code></p>