Table of Contents

 
SetFont
 

Purpose

Assigns a new font to a text object

 

Protoype

void CTextMngr::SetFont (string str_text_id, string str_font_id)
 

Parameters

text_id the ID of the text object to assign a new font to
font_id the ID of the new font object to assign
 

Description

This function changes the assigned font of a text object to a new one. This is a good function to use if you are about to release a font object still associated with one or more text objects (bad!) since you can reassign the font of the objects if possible.

 
Use
CTextMngr text;
text.SetFont("my_text", "my_font");
 

Prev: SelectText