This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [setup PATCH] SetDlgItemFont


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]