Table of Contents | ||||
|
||||
AddFont | ||||
Purpose Adds a font object to the manager |
||||
Protoype void CTextMngr::AddFont (string str_font_id, string str_filename) |
||||
Parameters
|
||||
Description Font objects can be assigned to text objects so that when the text objects are render they are displayed in the font assigned to them. This allows automatic display of various fonts on the screen. The font assigned to a text object can be changed with SetFont(). Each font object has its own unique identifier string contained in str_font_id. This identifier can have no spaces, and if an identical indentifier already exists in the font manager this ID will be ignored. The actual font itself is a true-type font file, the path or location of which is contained in str_filename.
|
||||
Use CTextMngr text; text.AddFont("my_font", "arial.ttf"); |
||||
|
||||
|