Subj : Re: system font To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Tue Jul 05 2005 03:54 pm Jack Sawatzky wrote: >When I call CreateFont() with "SYSTEM" it gives me a font that is >ten pixels high, no matter how low I set the Weight and Height >parameters. The font I want is 9 pixels high; it is the font you >see in nearly every Windows listing. Therefore "system" may not >be the right name. > EnumFontFamilies() wont do me any good, >because I don't know what name to look for. I suggested that so you could see if SYSTEM was actually a font on your computer. (It's not on mine, but yours could be different) > MS Shell Dlg didn't get me anywhere either. Show your code? And what was the actual result? "didn't get me anywhere" isn't very useful. >The font I want is everywhere in Windows. It must be available >somehow. How? Do you need the font for some special purpose? No font needed here.... case WM_PAINT: hdc=BeginPaint(hWnd,&ps); SetMapMode(hdc,MM_TEXT); SetBkMode( hdc, TRANSPARENT ); TextOut(hdc, 200, 10, szMsg4, strlen(szMsg4) ); TextOut(hdc, 200, 30, szMsg5, strlen(szMsg5) ); TextOut(hdc, 10, 50+10, szMsg1, strlen(szMsg1) ); TextOut(hdc, 10, 90+10, szMsg2, strlen(szMsg2) ); TextOut(hdc, 10, 130+10, szMsg3, strlen(szMsg3) ); EndPaint(hWnd,&ps); break; .