| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Rich Text Template Support - Overview >====== FontStyleRTF code template ====== | [[fontrtf code template.htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[gettextrtf code template.htm|{{btn_next_n.gif|Next page}}]] | | || {{notebox.jpg|NoteBox.jpg}} **This template (and its associated code templates) has been deprecated, and is now replaced by the [[tplcontrolrtf.htm|RTF Text Control]] template.** The FontStyleRTF code template is used to set the current font style. The style of a font represents the strike weight and style of the font. This template calls the ChangeFontStyle method. The parameter passed to this method represents the new font style. ** Prototype:** **ChangeFontStyle( **//FontStyle//** )** **Example method calls:** **oRTF_RTFTextBox.ChangeFontStyle( FONT:Italic ) !Font Style** **oRTF_RTFTextBox.ChangeFontStyle( loc:fontstyle ) !Variable Font Style** **Template Prompts:** **Associated RTF control** Select the RTF control from the drop-down list. All controls on the Window are included in the list. This field in required. **Font style or variable** Specify the font style to use. A string or variable may be used. To use a variable, precede it with an exclamation point (!).