SetItalics The italics angle is in degrees. The commonly used italics angle is 12. You can set the angle to zero if you don't wish to print text with italics anymore. The default italics angle is zero. Note that changing the italics is rather slow as the font data in the graphics card has to be refreshed. If you need to render both italic and non-italic text with a TextRenderer, it's best to make a copy of the TextRenderer. Examples TextRenderer renderer( ... );
// Set the italics angle of the text to 12 (the commonly used angle) // renderer.SetItalics( 12 ); // To not to render italics text anymore you can set the italics angle to 0 // renderer.SetItalics( 0 ); Other functions of the class TextRenderer
Questions about SetItalics? Click here. |