Font selection
The SRGraphTitle class also contains the font management functions. All classes that display text are derived from this class, so all the methods described here can be used for text in any other type of Objective Chart component.
Fonts may be selected from any of the available bitmap or TrueType fonts. The following functions specify the appearance of displayed text:
-
SetFaceName()
-
SetFontStyle()
-
SetFontSize()
-
SetTextColor()
-
SetLogFont()
To change text appearance, call the font selection functions defined in SRGraphTitle. For example:
SRGraphTitle* pT=new SRGraphTitle;
CString sFace = "Times New Roman";
pT->SetFaceName(sFace);
pT->SetFontStyle(CX_FONT_BOLD | CX_FONT_AUTOSIZE);
pT->SetTextColor(CXCLR_MAGENTA);






