SRGraphTitle::SetLogFont

void SRGraphTitle::SetLogFont(LOGFONT * v)

Initializes the LOGFONT used in this object
Sets the face name, font size, and font style from the LOGFONT data so that the font caching system will identify a new font.
If you subsequently change the LOGFONT data, you must also change one of these identifying styles to force the a new font to be created in the font cache.
Currently, only bits 0-6 of the font style are used, so you could do something like if(bFontChanged)
{
int nStyle = pC->GetFontStyle();
pC->SetFontStyle(nStyle+1024);
}

Defined in: SRGraphTitle.cpp

Parameters

v

Pointer to a LOGFONT structure that describes the desired font

Developer Notes

The LOGFONT structure must exist as long as the chart is displayed.
It should be a member of the same class as the SRGraph object or declared as static.
If it is created on the heap, you are responsible for deleting it when it is no longer needed.