Re: Default Font Bolded
"Political" <politicalconfusion-/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
I've used SPI_GETNONCLIENTMETRICS with SystemParametersInfo() to get a default GUI font in the past. Something like this: NONCLIENTMETRICS ncm; ncm.cbSize = sizeof( ncm ); SystemParametersInfo( SPI_GETNONCLIENTMETRICS, ncm.cbSize, &ncm, 0 ); ncm.lfCaptionFont.lfWeight = FW_NORMAL; HFONT hFont = CreateFontIndirect( &(ncm.lfCaptionFont) ); This creates non-bold Tahoma in WinXP and Segoe UI in Win7. --- In [email protected], "yarp" <lac@...> wrote: > > Hi, > I have noticed in a number of situations that DefaultGuiFont (or whatever it is) is always Bolded when I plot some Text on Screen or Printer. > For example I had a Text that I update for a progress bar and first call to SetWindowText gives a bolded display while subsequent calls are not. > Today I noticed the same effect on a Printer output (with DrawText) this time (first page Title was bolded and subsequents are not). > > So my question is: > anybodys knows how I could force a Device Context default font to be non bold ? > > Thanks in advance, > > Yarp > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/