- HFONT hFont = (HFONT) ::GetStockObject(index);
- if ( hFont != (HFONT) NULL )
- {
- LOGFONT lf;
- if ( ::GetObject(hFont, sizeof(LOGFONT), &lf) != 0 )
- {
- // In fontdlg.cpp
- return wxCreateFontFromLogFont(&lf);
- }
- else
- {
- return wxNullFont;
- }
- }
- else
- {
- return wxNullFont;
- }
+ HFONT hFont = (HFONT) ::GetStockObject(index);
+ if ( hFont != (HFONT) NULL )
+ {
+ LOGFONT lf;
+ if ( ::GetObject(hFont, sizeof(LOGFONT), &lf) != 0 )
+ {
+ // In fontdlg.cpp
+ return wxCreateFontFromLogFont(&lf);
+ }
+ else
+ {
+ return wxNullFont;
+ }
+ }
+ else
+ {
+ return wxNullFont;
+ }