home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!uxa.ecn.bgu.edu!garrot.DMI.USherb.CA!trepe00
- From: trepe00@DMI.USherb.CA (ERIC TREPANIER)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: Boldface Stock Fonts?
- Message-ID: <Bx9BzH.rH@DMI.USherb.CA>
- Date: 5 Nov 92 19:11:41 GMT
- Article-I.D.: DMI.Bx9BzH.rH
- References: <1992Nov4.222139.19762@ods.com> <92310.090842SASTPH@vm.sas.com>
- Sender: usenet@DMI.USherb.CA (Pour courrier Usenet)
- Organization: Universite de Sherbrooke -- Dept. d'Informatique
- Lines: 26
- Nntp-Posting-Host: roselin
-
- In article <92310.090842SASTPH@vm.sas.com> <SASTPH@vm.sas.com> writes:
- >In article <1992Nov4.222139.19762@ods.com>, scott@ods.com (Scott Harper) says:
- >>
- >>Is there a way to make one of the stock fonts take on
- >>a BOLD attribute (ala the LOGFONT structure, lfWeight = FW_BOLD)?
- >>
- >Windows can deliver BOLD versions of the standard fonts. Just ask for
- >a bold weight (FW_BOLD) when you call CreateFont. Note that the default
- >font for dialog boxes is Helv 8 Bold.
-
- That's fine when you're using CreateFont, but I think the original poster
- was referring to the standard stock fonts, using the GetStockObject API call.
- In this case, since you don't get to use a LOGFONT structure, you can't
- specify any special attributes.
-
- Maybe there is an API call that will return a filled-up LOGFONT struct
- when given a HFONT handle. If not, then you have no choice but to request
- your font explicitly using CreateFont.
-
-
- Eric
- --
- Eric Trepanier
- eric@tgm.CAM.ORG
- "Everybody has a right to believe in something.
- I believe I'll have another beer."
-