Get the name of system-wide font.
string GetFontName( int nID, int * plfHeight )
A string containing the font name.
EX1
// This is a self contained sample program for the function GetFontName, // To run the program, enter the following command in the Script window: // GetFontName_ex1 // When you run this program, a meassage like following will be printed: // SYSTEM_FONT(13) is: "System", Height=18 // void GetFontName_ex1() { string strFontName; int plfHeight; strFontName = GetFontName(SYSTEM_FONT, &plfHeight); printf(" SYSTEM_FONT(%d) is: \"%s\", Height=%d\n",SYSTEM_FONT, strFontName,plfHeight); }
origin.h