= setFont =
== Syntax == void setFont(int size, float rotation, bool bold, bool italic, char* font) == Arguments == :size ::Size in units :rotation ::Rotation angle in radians. :bold ::Use a bold style. :italic ::Use a italic style. :font ::The name of the font. i.e. "Arial". == Description == Set the font to use for `setText` and `setTextV`. == Comment == This function is only for use when drawing on an OWNERDRAW using the startSetPixel and endSetPixel functions. To change the font associated with a control, use createFont and setCtlFont instead. == Example == <code> %ffp ctl[0]: OWNERDRAW, Color=RGB(0,0,0), Size=(100,100) OnFilterStart: { startSetPixel(0); setFont(17, 0, true, false, "Arial"); setText(5, 0, RGB(255,255,255), TA_LEFT | TA_TOP, "Player 1"); setText(145, 0, RGB(255,255,255), TA_RIGHT | TA_TOP, "Player 2"); endSetPixel(0); return false; }</code> == See Also == |