<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Font::draw_glyph - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_Font::draw_glyph</h1> <p> Draws a single glyph to a given spot.</p> <pre> void draw_glyph( int x, int y, unsigned int glyph, float ang = 0.0, CL_GraphicContext* gc = 0); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>x, y</i></dt><dd>The upper-left coordinates of where to draw the glyph.</dd> <dt><i>chr</i></dt><dd>The character to draw the glyph of.</dd> <dt><i>ang</i></dt><dd>The amount to rotate the glyph by. The hotspot is set with CL_Font::set_glyph_rot_hotspot().</dd> <dt><i>gc</i></dt><dd>Graphic context to render to. If null, will render to the CL_Display currently set window.</dd> </dl> <p><b>Detailed description:</b></p> <p> If there is no glyph for the given index, then nothing is drawn. </p> <p><b>See also:</b></p> <p><a href="CL_GraphicContext.html">CL_GraphicContext</a> | <a href="CL_Display.html">CL_Display</a> | <a href="CL_Font.html">CL_Font</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->