This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: [setup PATCH] SetDlgItemFont
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Max Bowsher <maxb at ukf dot net>
- Cc: "Andrew M. Inggs" <aminggs at yahoo dot co dot uk>, <cygwin-apps at cygwin dot com>
- Date: Thu, 31 Jul 2003 18:06:44 -0400 (EDT)
- Subject: Re: [setup PATCH] SetDlgItemFont
- Reply-to: cygwin-apps at cygwin dot com
On Thu, 31 Jul 2003, Max Bowsher wrote:
> Andrew M. Inggs wrote:
> > Max Bowsher wrote:
>
> >> - // This will just silently fail on the first and last pages.
> >> - SetDlgItemFont(IDC_STATIC_HEADER_TITLE, "MS Sans Serif", 8, FW_BOLD);
> >> + // These font settings will just silently fail when the resource id
> >> + // is not present on a page.
> >> + // Set header title font of each internal page
> >> + SetDlgItemFont(IDC_STATIC_HEADER_TITLE, "MS Shell Dlg", 8, FW_BOLD);
> >> + // Set the font for the IDC_STATIC_WELCOME_TITLE
> >> + SetDlgItemFont(IDC_STATIC_WELCOME_TITLE, "Ariel", 12, FW_BOLD);
> >
> > Shouldn't that be Arial rather than Ariel?
>
> Maybe. Curiously, it doesn't seem to make a difference!
>
> Max.
If it doesn't recognize the font name (or the font is not installed),
Windows reverts to the default font. Apparently, Arial is the default
font for dialog titles... You can check that by modifying the Appearance
tab of the Display properties and seeing if it makes a difference then.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton